mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 13:18:50 +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
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue