Remove the nonfunctional Restore Defaults button from the preferences dialog
Originally committed to SVN as r6482.
This commit is contained in:
parent
46254613c8
commit
57b6a1f03a
1 changed files with 1 additions and 6 deletions
|
@ -695,16 +695,11 @@ Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences"
|
||||||
// Bottom Buttons
|
// Bottom Buttons
|
||||||
wxStdDialogButtonSizer *stdButtonSizer = CreateStdDialogButtonSizer(wxOK | wxCANCEL | wxAPPLY);
|
wxStdDialogButtonSizer *stdButtonSizer = CreateStdDialogButtonSizer(wxOK | wxCANCEL | wxAPPLY);
|
||||||
applyButton = stdButtonSizer->GetApplyButton();
|
applyButton = stdButtonSizer->GetApplyButton();
|
||||||
wxSizer *buttonSizer = new wxBoxSizer(wxHORIZONTAL);
|
|
||||||
wxButton *defaultButton = new wxButton(this, -1, _("&Restore Defaults"));
|
|
||||||
buttonSizer->Add(defaultButton, wxSizerFlags(0).Expand());
|
|
||||||
buttonSizer->AddStretchSpacer(1);
|
|
||||||
buttonSizer->Add(stdButtonSizer, wxSizerFlags(0).Expand());
|
|
||||||
|
|
||||||
// Main Sizer
|
// Main Sizer
|
||||||
wxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
|
wxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
mainSizer->Add(book, wxSizerFlags(1).Expand().Border());
|
mainSizer->Add(book, wxSizerFlags(1).Expand().Border());
|
||||||
mainSizer->Add(buttonSizer, wxSizerFlags(0).Expand().Border(wxALL & ~wxTOP));
|
mainSizer->Add(stdButtonSizer, wxSizerFlags(0).Expand().Border(wxALL & ~wxTOP));
|
||||||
|
|
||||||
SetSizerAndFit(mainSizer);
|
SetSizerAndFit(mainSizer);
|
||||||
SetMinSize(wxSize(-1, 500));
|
SetMinSize(wxSize(-1, 500));
|
||||||
|
|
Loading…
Reference in a new issue