projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Close notifications on other connected clients as well
[quassel.git]
/
src
/
qtui
/
mainwin.cpp
diff --git
a/src/qtui/mainwin.cpp
b/src/qtui/mainwin.cpp
index
b35cad8
..
e1d961c
100644
(file)
--- a/
src/qtui/mainwin.cpp
+++ b/
src/qtui/mainwin.cpp
@@
-996,7
+996,7
@@
bool MainWin::event(QEvent *event) {
if(event->type() == QEvent::WindowActivate) {
BufferId buffer = Client::bufferModel()->currentBuffer();
if(buffer.isValid())
if(event->type() == QEvent::WindowActivate) {
BufferId buffer = Client::bufferModel()->currentBuffer();
if(buffer.isValid())
-
QtUi::closeNotifications
(buffer);
+
Client::instance()->markBufferAsRead
(buffer);
}
return QMainWindow::event(event);
}
}
return QMainWindow::event(event);
}
@@
-1067,14
+1067,14
@@
void MainWin::messagesInserted(const QModelIndex &parent, int start, int end) {
else
type = AbstractNotificationBackend::HighlightFocused;
else
type = AbstractNotificationBackend::HighlightFocused;
- QtUi::invokeNotification(bufId, type, sender, contents);
+ QtUi::in
stance()->in
vokeNotification(bufId, type, sender, contents);
}
}
}
void MainWin::currentBufferChanged(BufferId buffer) {
if(buffer.isValid())
}
}
}
void MainWin::currentBufferChanged(BufferId buffer) {
if(buffer.isValid())
-
QtUi::closeNotifications
(buffer);
+
Client::instance()->markBufferAsRead
(buffer);
}
void MainWin::clientNetworkCreated(NetworkId id) {
}
void MainWin::clientNetworkCreated(NetworkId id) {