mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-01 01:20:40 +00:00
Remove an unnecessary null check in CodeWindow.cpp.
The validity of ToolBar is checked at the beginning of the function
This commit is contained in:
parent
75cb8a7452
commit
554207a87c
@ -611,7 +611,8 @@ void CCodeWindow::UpdateButtonStates()
|
|||||||
wxAuiToolBar* ToolBar = GetToolBar();
|
wxAuiToolBar* ToolBar = GetToolBar();
|
||||||
|
|
||||||
// Toolbar
|
// Toolbar
|
||||||
if (!ToolBar) return;
|
if (!ToolBar)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!Initialized)
|
if (!Initialized)
|
||||||
{
|
{
|
||||||
@ -633,8 +634,7 @@ void CCodeWindow::UpdateButtonStates()
|
|||||||
}
|
}
|
||||||
|
|
||||||
ToolBar->EnableTool(IDM_STEP, Initialized && Stepping);
|
ToolBar->EnableTool(IDM_STEP, Initialized && Stepping);
|
||||||
|
ToolBar->Realize();
|
||||||
if (ToolBar) ToolBar->Realize();
|
|
||||||
|
|
||||||
// Menu bar
|
// Menu bar
|
||||||
// ------------------
|
// ------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user