Don't hang when activating a notification, fixes #657
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 3 Apr 2009 20:30:42 +0000 (22:30 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 12 Apr 2009 09:51:41 +0000 (11:51 +0200)
src/qtui/qtui.cpp

index 30fe5a3..d19692c 100644 (file)
@@ -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;
     }
   }