Skip to content

Commit

Permalink
DolphinWX: Fix toolbar creation on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
hthh authored and dougallj committed Nov 18, 2016
1 parent 6c16f1b commit 4d2f058
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/Frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ CFrame::CFrame(wxFrame* parent, wxWindowID id, const wxString& title, wxRect geo
g_pCodeWindow->Load();
}

wxFrame::CreateToolBar(wxTB_DEFAULT_STYLE | wxTB_TEXT | wxTB_FLAT);
wxFrame::CreateToolBar(wxTB_DEFAULT_STYLE | wxTB_TEXT | wxTB_FLAT)->Realize();

// Give it a status bar
SetStatusBar(CreateStatusBar(2, wxST_SIZEGRIP, ID_STATUSBAR));
Expand Down
1 change: 0 additions & 1 deletion Source/Core/DolphinWX/MainToolBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ MainToolBar::MainToolBar(ToolBarType type, wxWindow* parent, wxWindowID id, cons
wxToolBar::SetToolBitmapSize(FromDIP(wxSize{32, 32}));
InitializeBitmaps();
AddToolBarButtons();
wxToolBar::Realize();

BindEvents();
}
Expand Down

0 comments on commit 4d2f058

Please sign in to comment.