From 9303035d7fd2920aee9880fcf21ba9515b16669b Mon Sep 17 00:00:00 2001 From: nishant Date: Mon, 15 Feb 2010 18:44:35 +0000 Subject: [PATCH] messenger-window thumbnail photo update on change git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2334 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MessengerWindow.h | 2 +- retroshare-gui/src/main.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/MessengerWindow.h b/retroshare-gui/src/gui/MessengerWindow.h index 721381b8e..38ab68b1d 100644 --- a/retroshare-gui/src/gui/MessengerWindow.h +++ b/retroshare-gui/src/gui/MessengerWindow.h @@ -55,6 +55,7 @@ public slots: void show(); void updatePeersAvatar(const QString& peer_id); + void updateAvatar(); LogoBar & getLogoBar() const; @@ -92,7 +93,6 @@ private slots: void getAvatar(); void changeAvatarClicked(); - void updateAvatar(); void loadmystatus(); void loadstatus(); diff --git a/retroshare-gui/src/main.cpp b/retroshare-gui/src/main.cpp index 238bd46b8..1c8afc6f1 100644 --- a/retroshare-gui/src/main.cpp +++ b/retroshare-gui/src/main.cpp @@ -146,6 +146,7 @@ int main(int argc, char *argv[]) QObject::connect(notify,SIGNAL(peerHasNewCustomStateString(const QString&)),w->peersDialog,SLOT(updatePeersCustomStateString(const QString&))); QObject::connect(notify,SIGNAL(peerHasNewAvatar(const QString&)),w->peersDialog,SLOT(updatePeersAvatar(const QString&))); QObject::connect(notify,SIGNAL(ownAvatarChanged()),w->peersDialog,SLOT(updateAvatar())); + QObject::connect(notify,SIGNAL(ownAvatarChanged()),w->messengerWindow,SLOT(updateAvatar())); QObject::connect(notify,SIGNAL(ownStatusMessageChanged()),w->peersDialog,SLOT(loadmypersonalstatus())); QObject::connect(notify,SIGNAL(logInfoChanged(const QString&)),w->networkDialog,SLOT(setLogInfo(QString))) ;