mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
Removed TBDebug, using TBMain instead. Fixed debugger assert.
This commit is contained in:
parent
b8b72861b5
commit
b81617fba1
4 changed files with 13 additions and 11 deletions
|
@ -540,15 +540,18 @@ void CFrame::RecreateToolbar()
|
|||
|
||||
long TOOLBAR_STYLE = wxTB_DEFAULT_STYLE | wxTB_TEXT;
|
||||
|
||||
if (g_pCodeWindow && !m_ToolBarDebug)
|
||||
if (!m_ToolBar)
|
||||
{
|
||||
m_ToolBarDebug = CreateToolBar(TOOLBAR_STYLE, wxID_ANY, "TBDebug");
|
||||
g_pCodeWindow->PopulateToolbar(m_ToolBarDebug);
|
||||
m_ToolBarDebug->AddSeparator();
|
||||
}
|
||||
m_ToolBar = CreateToolBar(TOOLBAR_STYLE, wxID_ANY, "TBMain");
|
||||
|
||||
m_ToolBar = CreateToolBar(TOOLBAR_STYLE, wxID_ANY, "TBMain");
|
||||
PopulateToolbar(m_ToolBar);
|
||||
if (g_pCodeWindow)
|
||||
{
|
||||
g_pCodeWindow->PopulateToolbar(m_ToolBar);
|
||||
m_ToolBar->AddSeparator();
|
||||
}
|
||||
|
||||
PopulateToolbar(m_ToolBar);
|
||||
}
|
||||
|
||||
UpdateGUI();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue