From 1f32c327ade7db3a1760b49508fb34aa10e98044 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Fri, 3 Apr 2009 22:30:42 +0200 Subject: [PATCH] Don't hang when activating a notification, fixes #657 --- src/qtui/qtui.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/qtui/qtui.cpp b/src/qtui/qtui.cpp index 30fe5a37..d19692ca 100644 --- a/src/qtui/qtui.cpp +++ b/src/qtui/qtui.cpp @@ -137,9 +137,7 @@ void QtUi::closeNotification(uint notificationId) { backend->close(notificationId); i = _notifications.erase(i); break; - } else { - ++i; - } + } else ++i; } } @@ -150,9 +148,7 @@ void QtUi::closeNotifications(BufferId bufferId) { foreach(AbstractNotificationBackend *backend, _notificationBackends) backend->close((*i).notificationId); i = _notifications.erase(i); - } else { - ++i; - } + } else ++i; } } @@ -170,7 +166,7 @@ void QtUi::notificationActivated(uint notificationId) { Client::bufferModel()->switchToBuffer(bufId); _notifications.erase(i); break; - } + } else ++i; } } -- 2.20.1