DolphinWX: Remove an unnecessary sizer from the watch window

The AUI manager already has the grid in place. Setting the sizer isn't needed.
This commit is contained in:
Lioncash 2015-02-26 09:58:33 -05:00
parent 6f01b4226a
commit d50c56c2e4

View File

@ -9,7 +9,6 @@
#include <wx/event.h>
#include <wx/gdicmn.h>
#include <wx/panel.h>
#include <wx/sizer.h>
#include <wx/string.h>
#include <wx/windowid.h>
#include <wx/aui/auibar.h>
@ -70,10 +69,7 @@ CWatchWindow::CWatchWindow(wxWindow* parent, wxWindowID id,
m_mgr.SetManagedWindow(this);
m_mgr.SetFlags(wxAUI_MGR_DEFAULT | wxAUI_MGR_LIVE_RESIZE);
wxBoxSizer *sGrid = new wxBoxSizer(wxVERTICAL);
m_GPRGridView = new CWatchView(this);
sGrid->Add(m_GPRGridView, 1, wxGROW);
SetSizer(sGrid);
m_mgr.AddPane(new CWatchToolbar(this, wxID_ANY), wxAuiPaneInfo().ToolbarPane().Top().
LeftDockable(true).RightDockable(true).BottomDockable(false).Floatable(false));