From 57b6a1f03a37a26ccd6f15577ba7b4e660d09850 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 17 Feb 2012 00:14:35 +0000 Subject: [PATCH] Remove the nonfunctional Restore Defaults button from the preferences dialog Originally committed to SVN as r6482. --- aegisub/src/preferences.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/aegisub/src/preferences.cpp b/aegisub/src/preferences.cpp index 51c53c997..39b0557ab 100644 --- a/aegisub/src/preferences.cpp +++ b/aegisub/src/preferences.cpp @@ -695,16 +695,11 @@ Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences" // Bottom Buttons wxStdDialogButtonSizer *stdButtonSizer = CreateStdDialogButtonSizer(wxOK | wxCANCEL | wxAPPLY); 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 wxSizer *mainSizer = new wxBoxSizer(wxVERTICAL); 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); SetMinSize(wxSize(-1, 500));