Fixed code battle start button becoming visible after closing file selection dialog

master
krzys-h 2015-09-11 18:38:25 +02:00
parent 48f24fe6cc
commit c9a1bbefbb
1 changed files with 4 additions and 4 deletions

View File

@ -1109,8 +1109,8 @@ void CStudio::StartDialog(StudioDialog type)
pw = static_cast< CWindow* >(m_interface->SearchControl(EVENT_WINDOW5));
if ( pw != nullptr ) pw->ClearState(STATE_ENABLE);
pw = static_cast< CWindow* >(m_interface->SearchControl(EVENT_WINDOW6));
if ( pw != nullptr ) pw->ClearState(STATE_VISIBLE);
//pw = static_cast< CWindow* >(m_interface->SearchControl(EVENT_WINDOW6));
//if ( pw != nullptr ) pw->ClearState(STATE_VISIBLE);
pw = static_cast< CWindow* >(m_interface->SearchControl(EVENT_WINDOW7));
if ( pw != nullptr ) pw->ClearState(STATE_ENABLE);
@ -1224,8 +1224,8 @@ void CStudio::StopDialog()
pw = static_cast< CWindow* >(m_interface->SearchControl(EVENT_WINDOW5));
if ( pw != nullptr ) pw->SetState(STATE_ENABLE);
pw = static_cast< CWindow* >(m_interface->SearchControl(EVENT_WINDOW6));
if ( pw != nullptr ) pw->SetState(STATE_VISIBLE);
//pw = static_cast< CWindow* >(m_interface->SearchControl(EVENT_WINDOW6));
//if ( pw != nullptr ) pw->SetState(STATE_VISIBLE);
pw = static_cast< CWindow* >(m_interface->SearchControl(EVENT_WINDOW7));
if ( pw != nullptr ) pw->SetState(STATE_ENABLE);