Rewrite bizarre code in a way that makes more sense
This commit is contained in:
parent
87f5fd988e
commit
8156b8a66b
@ -124,7 +124,7 @@ bool NotificationDialog::onEscapePressed()
|
|||||||
void NotificationDialog::onUpdate(float dt)
|
void NotificationDialog::onUpdate(float dt)
|
||||||
{
|
{
|
||||||
//If we want to open the registration dialog, we need to close this one first
|
//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
|
// It's unsafe to delete from inside the event handler so we do it here
|
||||||
if (m_self_destroy)
|
if (m_self_destroy)
|
||||||
|
@ -160,7 +160,7 @@ void ServerInfoDialog::onUpdate(float dt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//If we want to open the registration dialog, we need to close this one first
|
//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
|
// It's unsafe to delete from inside the event handler so we do it here
|
||||||
if (m_self_destroy)
|
if (m_self_destroy)
|
||||||
|
@ -216,7 +216,7 @@ void UserInfoDialog::onUpdate(float dt)
|
|||||||
if(m_processing) m_info_widget->setText(Messages::processing(), false);
|
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
|
//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
|
// It's unsafe to delete from inside the event handler so we do it here
|
||||||
if (m_self_destroy)
|
if (m_self_destroy)
|
||||||
|
Loading…
Reference in New Issue
Block a user