Rewrite bizarre code in a way that makes more sense

This commit is contained in:
Marianne Gagnon 2014-01-29 19:45:56 -05:00
parent 87f5fd988e
commit 8156b8a66b
3 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ bool NotificationDialog::onEscapePressed()
void NotificationDialog::onUpdate(float dt)
{
//If we want to open the registration dialog, we need to close this one first
m_view && (m_self_destroy = true);
if (m_view) m_self_destroy = true;
// It's unsafe to delete from inside the event handler so we do it here
if (m_self_destroy)

View File

@ -160,7 +160,7 @@ void ServerInfoDialog::onUpdate(float dt)
}
//If we want to open the registration dialog, we need to close this one first
m_enter_lobby && (m_self_destroy = true);
if (m_enter_lobby) m_self_destroy = true;
// It's unsafe to delete from inside the event handler so we do it here
if (m_self_destroy)

View File

@ -216,7 +216,7 @@ void UserInfoDialog::onUpdate(float dt)
if(m_processing) m_info_widget->setText(Messages::processing(), false);
//If we want to open the registration dialog, we need to close this one first
m_enter_profile && (m_self_destroy = true);
if (m_enter_profile) m_self_destroy = true;
// It's unsafe to delete from inside the event handler so we do it here
if (m_self_destroy)