summaryrefslogtreecommitdiffstats
path: root/src/ui/maindialog.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-07-10 16:52:29 +0200
committerkrzys-h <krzys_h@interia.pl>2014-07-10 16:52:29 +0200
commitc22e55b99a38d405fb79184106261229bd2d1855 (patch)
treee2207e5a3a2e9d9f3c247892acd7e9136a060628 /src/ui/maindialog.cpp
parent4c7ff90dcc451a4d231d227ae69efdb0c7e33a1c (diff)
downloadcolobot-c22e55b99a38d405fb79184106261229bd2d1855.tar.gz
colobot-c22e55b99a38d405fb79184106261229bd2d1855.tar.bz2
colobot-c22e55b99a38d405fb79184106261229bd2d1855.zip
Removed some unused code related to Quit button
The button itself has been removed a long time ago
Diffstat (limited to 'src/ui/maindialog.cpp')
-rw-r--r--src/ui/maindialog.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index 11f8f4a..e09e5a0 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -5852,12 +5852,6 @@ void CMainDialog::StartDialog(Math::Point dim, bool bFire, bool bOK, bool bCance
pw = static_cast<CWindow*>(m_interface->SearchControl(EVENT_WINDOW8));
if ( pw != 0 ) pw->ClearState(STATE_ENABLE);
- pb = static_cast<CButton*>(m_interface->SearchControl(EVENT_BUTTON_QUIT));
- if ( pb != 0 )
- {
- pb->ClearState(STATE_VISIBLE);
- }
-
m_bDialogFire = bFire;
std::string name;
@@ -6040,12 +6034,6 @@ void CMainDialog::StopDialog()
pw = static_cast<CWindow*>(m_interface->SearchControl(EVENT_WINDOW8));
if ( pw != 0 ) pw->SetState(STATE_ENABLE);
- pb = static_cast<CButton*>(m_interface->SearchControl(EVENT_BUTTON_QUIT));
- if ( pb != 0 )
- {
- pb->SetState(STATE_VISIBLE);
- }
-
StopSuspend();
m_interface->DeleteControl(EVENT_WINDOW9);
m_bDialog = false;