mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +02:00
fix crashes when deleting stamps or getting an error when saving
This commit is contained in:
@@ -174,8 +174,8 @@ void ServerSaveActivity::Save()
|
|||||||
virtual void ConfirmCallback(ConfirmPrompt::DialogueResult result) {
|
virtual void ConfirmCallback(ConfirmPrompt::DialogueResult result) {
|
||||||
if (result == ConfirmPrompt::ResultOkay)
|
if (result == ConfirmPrompt::ResultOkay)
|
||||||
{
|
{
|
||||||
a->saveUpload();
|
|
||||||
a->Exit();
|
a->Exit();
|
||||||
|
a->saveUpload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
virtual ~PublishConfirmation() { }
|
virtual ~PublishConfirmation() { }
|
||||||
@@ -189,8 +189,8 @@ void ServerSaveActivity::Save()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
saveUpload();
|
|
||||||
Exit();
|
Exit();
|
||||||
|
saveUpload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -60,7 +60,7 @@ void TaskWindow::Exit()
|
|||||||
if(ui::Engine::Ref().GetWindow()==this)
|
if(ui::Engine::Ref().GetWindow()==this)
|
||||||
{
|
{
|
||||||
ui::Engine::Ref().CloseWindow();
|
ui::Engine::Ref().CloseWindow();
|
||||||
delete this;
|
SelfDestruct();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user