mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-17 16:50:26 +02:00
Comment how AddStandardButtons sets default; remove redundant call
This commit is contained in:
parent
6bff718248
commit
cd4266792a
@ -429,7 +429,12 @@ public:
|
||||
ShuttleGui & Prop( int iProp ){ ShuttleGuiBase::Prop(iProp); return *this;}; // Has to be here too, to return a ShuttleGui and not a ShuttleGuiBase.
|
||||
GuiWaveTrack * AddGuiWaveTrack( const wxString & Name);
|
||||
AttachableScrollBar * AddAttachableScrollBar( long style = wxSB_HORIZONTAL );
|
||||
void AddStandardButtons( long buttons = eOkButton | eCancelButton, wxButton *extra = NULL );
|
||||
|
||||
// The first of these buttons, if any, that is included will be default:
|
||||
// Apply, Yes, OK
|
||||
void AddStandardButtons(
|
||||
long buttons = eOkButton | eCancelButton, wxButton *extra = NULL );
|
||||
|
||||
wxSizerItem * AddSpace( int width, int height );
|
||||
wxSizerItem * AddSpace( int size ) { return AddSpace( size, size ); };
|
||||
|
||||
|
@ -617,7 +617,6 @@ PrefsDialog::PrefsDialog
|
||||
S.EndVerticalLay();
|
||||
|
||||
S.AddStandardButtons(eOkButton | eCancelButton | ePreviewButton | eHelpButton);
|
||||
static_cast<wxButton*>(wxWindow::FindWindowById(wxID_OK, this))->SetDefault();
|
||||
|
||||
if (mUniquePage && !mUniquePage->ShowsPreviewButton()) {
|
||||
wxWindow *const previewButton =
|
||||
|
Loading…
x
Reference in New Issue
Block a user