Fix private chat icon not changing back to idle icon from new message icon when window activated

Broken in add9c1e72c
This commit is contained in:
hunbernd 2018-03-31 22:39:58 +02:00
parent 73c6deebf4
commit c821c179ef

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);