diff options
author | Markus Goetz <markus@woboq.com> | 2017-08-03 19:03:58 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2017-12-13 13:00:40 +0300 |
commit | 75676f883092426c7f669b65f96f01e36f0a1bc2 (patch) | |
tree | 8ddc74a036ed7dfc5890050ded1d1b74b2ef9b4b /src/gui/activitywidget.cpp | |
parent | 530853c98853608a99f50497573db99397325a8b (diff) |
Notifications: Propagate "Dismiss" as DELETE to server #5922
(cherry picked from commit e86416fff7c74174e699802cec46da8ca3c3aad5)
Diffstat (limited to 'src/gui/activitywidget.cpp')
-rw-r--r-- | src/gui/activitywidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp index b089fef9b..8a29d9152 100644 --- a/src/gui/activitywidget.cpp +++ b/src/gui/activitywidget.cpp @@ -429,14 +429,13 @@ void ActivityWidget::slotNotifyServerFinished(const QString &reply, int replyCod } endNotificationRequest(job->widget(), replyCode); - // FIXME: remove the widget after a couple of seconds qCInfo(lcActivity) << "Server Notification reply code" << replyCode << reply; // if the notification was successful start a timer that triggers // removal of the done widgets in a few seconds // Add 200 millisecs to the predefined value to make sure that the timer in // widget's method readyToClose() has elapsed. - if (replyCode == OCS_SUCCESS_STATUS_CODE) { + if (replyCode == OCS_SUCCESS_STATUS_CODE || replyCode == OCS_SUCCESS_STATUS_CODE_V2) { scheduleWidgetToRemove(job->widget()); } } |