Merge pull request #1221 from hunbernd/fix/private-chat-icon-not-updating

Fix private chat icon not changing back to idle icon from new message…
This commit is contained in:
csoler 2018-04-15 22:18:59 +02:00 committed by GitHub
commit c84e5e863b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -743,6 +743,13 @@ bool ChatWidget::eventFilter(QObject *obj, QEvent *event)
}
}
} else {
if (event->type() == QEvent::WindowActivate) {
if (isVisible() && (window() == NULL || window()->isActiveWindow())) {
newMessages = false;
emit infoChanged(this);
}
}
}
// pass the event on to the parent class
return QWidget::eventFilter(obj, event);