From c821c179ef74a0b1ffe3979a3c56e998410765a0 Mon Sep 17 00:00:00 2001 From: hunbernd Date: Sat, 31 Mar 2018 22:39:58 +0200 Subject: [PATCH] Fix private chat icon not changing back to idle icon from new message icon when window activated Broken in add9c1e72c895a8774709ba676034ea59fbbdc23 --- retroshare-gui/src/gui/chat/ChatWidget.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/retroshare-gui/src/gui/chat/ChatWidget.cpp b/retroshare-gui/src/gui/chat/ChatWidget.cpp index 2859527cd..bb0763bd3 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.cpp +++ b/retroshare-gui/src/gui/chat/ChatWidget.cpp @@ -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);