summaryrefslogtreecommitdiff
path: root/board.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-04 01:15:54 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-04 01:15:54 +0200
commit3c88a76b1be759d13097810877d6e990b3371726 (patch)
treedd5627700ef12be7c55d9f3ceda5a9575691a337 /board.cpp
parent723e0e7f37636379f76008582dca459490b845f4 (diff)
downloadtapasboard-3c88a76b1be759d13097810877d6e990b3371726.tar.gz
tapasboard-3c88a76b1be759d13097810877d6e990b3371726.zip
implement refresh action
Diffstat (limited to 'board.cpp')
-rw-r--r--board.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/board.cpp b/board.cpp
index 2cad565..d8660ef 100644
--- a/board.cpp
+++ b/board.cpp
@@ -215,10 +215,13 @@ QString Board::renderHumanTime(const QDateTime &dateTime)
void Board::cancelAllActions()
{
- disconnect(this, SLOT(handleActionFinished(Action*)));
- while (!_queue.isEmpty()) {
- Action *action = _queue.dequeue();
- delete action;
+ if (!_queue.isEmpty()) {
+ disconnect(this, SLOT(handleActionFinished(Action*)));
+ while (!_queue.isEmpty()) {
+ Action *action = _queue.dequeue();
+ delete action;
+ }
+ emit busyChanged();
}
}