fix crashes when deleting stamps or getting an error when saving

This commit is contained in:
jacob1
2012-11-15 20:00:55 -05:00
parent 785fbcefdf
commit 38a18af2c5
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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();
} }
} }