From ed3e495774bf48c93b137f7807273ea0a7ea7e90 Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 29 Mar 2025 12:19:25 +0100 Subject: [PATCH] change pixmap icon when status changed --- retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp b/retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp index bb9e22fdd..2afb5bf1b 100644 --- a/retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp +++ b/retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp @@ -122,6 +122,7 @@ void PopupDistantChatDialog::updateDisplay() msg = tr("Remote status unknown."); _status_label->setToolTip(msg); getChatWidget()->updateStatusString("%1", msg, true); + getChatWidget()->updatePixmapLabel(FilesDefs::getPixmapFromQtResourcePath(":images/status_unknown.png")); getChatWidget()->blockSending(tr( "Can't send message immediately, " "because there is no tunnel " "available." )); @@ -133,6 +134,7 @@ void PopupDistantChatDialog::updateDisplay() _status_label->setToolTip( QObject::tr("Distant peer has closed the chat") ); getChatWidget()->updateStatusString("%1", tr( "Your partner closed the conversation." ), true ); + getChatWidget()->updatePixmapLabel(FilesDefs::getPixmapFromQtResourcePath(":images/status_unknown.png")); getChatWidget()->blockSending(tr( "Your partner closed the conversation.")); setPeerStatus(RS_STATUS_OFFLINE) ;