diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-04 01:15:54 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-04 01:15:54 +0200 |
commit | 3c88a76b1be759d13097810877d6e990b3371726 (patch) | |
tree | dd5627700ef12be7c55d9f3ceda5a9575691a337 /board.cpp | |
parent | 723e0e7f37636379f76008582dca459490b845f4 (diff) | |
download | tapasboard-3c88a76b1be759d13097810877d6e990b3371726.tar.gz tapasboard-3c88a76b1be759d13097810877d6e990b3371726.zip |
implement refresh action
Diffstat (limited to 'board.cpp')
-rw-r--r-- | board.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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(); } } |