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