summaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-06-21 02:01:07 (GMT)
committer jacob1 <jfu614@gmail.com>2013-06-21 02:01:07 (GMT)
commit7a2114bc653cb450e58e59af9b8a5469d45ec140 (patch)
treed7f19719b6683b797af0dc6230ee994559034dc5 /src/tasks
parent3aac957e501a2fc5fde868f1fe973c523968357e (diff)
downloadpowder-7a2114bc653cb450e58e59af9b8a5469d45ec140.zip
powder-7a2114bc653cb450e58e59af9b8a5469d45ec140.tar.gz
add error messages when errors happening while fav. / unfav.ing a save, deleting a save, or unpublishing one. Also don't use session key in url to add a comment since it isn't needed
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/TaskWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tasks/TaskWindow.cpp b/src/tasks/TaskWindow.cpp
index f780d32..7848e81 100644
--- a/src/tasks/TaskWindow.cpp
+++ b/src/tasks/TaskWindow.cpp
@@ -40,12 +40,14 @@ void TaskWindow::NotifyStatus(Task * task)
void TaskWindow::NotifyError(Task * task)
{
new ErrorMessage("Error", task->GetError());
+ done = true;
}
void TaskWindow::NotifyDone(Task * task)
{
if(closeOnDone)
Exit();
+ done = true;
}
void TaskWindow::Exit()
@@ -78,6 +80,8 @@ void TaskWindow::OnTick(float dt)
if(intermediatePos>100.0f)
intermediatePos = 0.0f;
task->Poll();
+ if (done)
+ Exit();
}
void TaskWindow::OnDraw()