summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-10-18 21:12:44 -0400
committerLioncash <mathew1800@gmail.com>2014-10-18 21:32:42 -0400
commit90eaf9519cdac1b0411249aaefaf34dd20edf4a7 (patch)
treee2d0d0d8e586c9f383cb0957a99bf259c88c3f03 /Source
parentf0769233e675ae754176f6b516c0f8584bd8b4cf (diff)
CheatsWindow: Remove unnecessary wxPanel in the wxDialog
We can simply size the controls within the dialog directly.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/Cheats/CheatsWindow.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/Source/Core/DolphinWX/Cheats/CheatsWindow.cpp b/Source/Core/DolphinWX/Cheats/CheatsWindow.cpp
index f151cf4aef..9796f6a48c 100644
--- a/Source/Core/DolphinWX/Cheats/CheatsWindow.cpp
+++ b/Source/Core/DolphinWX/Cheats/CheatsWindow.cpp
@@ -67,10 +67,8 @@ wxCheatsWindow::~wxCheatsWindow()
void wxCheatsWindow::Init_ChildControls()
{
- wxPanel* const panel = new wxPanel(this);
-
// Main Notebook
- m_notebook_main = new wxNotebook(panel, wxID_ANY);
+ m_notebook_main = new wxNotebook(this, wxID_ANY);
// --- Tabs ---
// Cheats List Tab
@@ -130,9 +128,9 @@ void wxCheatsWindow::Init_ChildControls()
m_notebook_main->AddPage(m_tab_log, _("Logging"));
// Button Strip
- m_button_apply = new wxButton(panel, wxID_APPLY, _("Apply"));
+ m_button_apply = new wxButton(this, wxID_APPLY, _("Apply"));
m_button_apply->Bind(wxEVT_BUTTON, &wxCheatsWindow::OnEvent_ApplyChanges_Press, this);
- wxButton* const button_cancel = new wxButton(panel, wxID_CANCEL, _("Cancel"));
+ wxButton* const button_cancel = new wxButton(this, wxID_CANCEL, _("Cancel"));
button_cancel->Bind(wxEVT_BUTTON, &wxCheatsWindow::OnEvent_ButtonClose_Press, this);
Bind(wxEVT_CLOSE_WINDOW, &wxCheatsWindow::OnEvent_Close, this);
@@ -145,11 +143,7 @@ void wxCheatsWindow::Init_ChildControls()
wxBoxSizer* const sMain = new wxBoxSizer(wxVERTICAL);
sMain->Add(m_notebook_main, 1, wxEXPAND|wxALL, 5);
sMain->Add(sButtons, 0, wxRIGHT | wxBOTTOM | wxALIGN_RIGHT, 5);
- panel->SetSizerAndFit(sMain);
-
- wxBoxSizer* const frame_szr = new wxBoxSizer(wxVERTICAL);
- frame_szr->Add(panel, 1, wxEXPAND);
- SetSizerAndFit(frame_szr);
+ SetSizerAndFit(sMain);
}
void wxCheatsWindow::OnEvent_ButtonClose_Press(wxCommandEvent& WXUNUSED (event))