projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16c9fb5
)
Don't hang when activating a notification, fixes #657
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 3 Apr 2009 20:30:42 +0000
(22:30 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 3 Apr 2009 20:30:53 +0000
(22:30 +0200)
src/qtui/qtui.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/qtui.cpp
b/src/qtui/qtui.cpp
index
4623142
..
02b6615
100644
(file)
--- a/
src/qtui/qtui.cpp
+++ b/
src/qtui/qtui.cpp
@@
-127,9
+127,7
@@
void QtUi::closeNotification(uint notificationId) {
backend->close(notificationId);
i = _notifications.erase(i);
break;
- } else {
- ++i;
- }
+ } else ++i;
}
}
@@
-140,9
+138,7
@@
void QtUi::closeNotifications(BufferId bufferId) {
foreach(AbstractNotificationBackend *backend, _notificationBackends)
backend->close((*i).notificationId);
i = _notifications.erase(i);
- } else {
- ++i;
- }
+ } else ++i;
}
}
@@
-160,7
+156,7
@@
void QtUi::notificationActivated(uint notificationId) {
Client::bufferModel()->switchToBuffer(bufId);
_notifications.erase(i);
break;
- }
+ }
else ++i;
}
}