Remove the nonfunctional Restore Defaults button from the preferences dialog

Originally committed to SVN as r6482.
This commit is contained in:
Thomas Goyne 2012-02-17 00:14:35 +00:00
parent 46254613c8
commit 57b6a1f03a

View file

@ -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));