From 01a0e4b658241cc3dbd8a5d11d34a6de48dab159 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 May 2015 00:55:13 +0300 Subject: Add strong typed bool type Visible. --- src/client.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index b23ddd11d..bf0bc99ba 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1452,7 +1452,7 @@ int Client::gameExec() logger->log1("State: CHANGE PASSWORD"); mCurrentDialog = new ChangePasswordDialog(&loginData); mCurrentDialog->postInit(); - mCurrentDialog->setVisible(true); + mCurrentDialog->setVisible(Visible_true); BLOCK_END("Client::gameExec STATE_CHANGEPASSWORD") break; @@ -1492,7 +1492,7 @@ int Client::gameExec() logger->log1("State: CHANGE EMAIL"); mCurrentDialog = new ChangeEmailDialog(&loginData); mCurrentDialog->postInit(); - mCurrentDialog->setVisible(true); + mCurrentDialog->setVisible(Visible_true); break; case STATE_CHANGEEMAIL_ATTEMPT: @@ -1721,7 +1721,8 @@ void Client::action(const ActionEvent &event) if (setupWindow) { - setupWindow->setVisible(!setupWindow->isWindowVisible()); + setupWindow->setVisible(fromBool( + !setupWindow->isWindowVisible(), Visible)); if (setupWindow->isWindowVisible()) { if (!tab.empty()) -- cgit v1.2.3-70-g09d2