diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index 71eea86d5..b39895e8b 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -204,7 +204,7 @@ void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point ) exportfriendAct = new QAction(QIcon(IMAGE_EXPIORTFRIEND), tr( "Export Friend" ), this ); connect( exportfriendAct , SIGNAL( triggered() ), this, SLOT( exportfriend() ) ); - removefriendAct = new QAction(QIcon(IMAGE_REMOVEFRIEND), tr( "Remove Friend" ), this ); + removefriendAct = new QAction(QIcon(IMAGE_REMOVEFRIEND), tr( "Deny Friend" ), this ); connect( removefriendAct , SIGNAL( triggered() ), this, SLOT( removefriend() ) ); @@ -567,6 +567,7 @@ void PeersDialog::removefriend() if (rsPeers) { rsPeers->removeFriend(getPeerRsCertId(c)); + emit friendsUpdated() ; } } diff --git a/retroshare-gui/src/gui/PeersDialog.h b/retroshare-gui/src/gui/PeersDialog.h index 59341b0ad..10ebb6177 100644 --- a/retroshare-gui/src/gui/PeersDialog.h +++ b/retroshare-gui/src/gui/PeersDialog.h @@ -104,6 +104,8 @@ private slots: void getFont(); void underline(); +signals: + void friendsUpdated() ; private: diff --git a/retroshare-gui/src/main.cpp b/retroshare-gui/src/main.cpp index bad075120..231444f69 100644 --- a/retroshare-gui/src/main.cpp +++ b/retroshare-gui/src/main.cpp @@ -175,6 +175,7 @@ int main(int argc, char *argv[]) QObject::connect(notify,SIGNAL(logInfoChanged(const QString&)),w->networkDialog,SLOT(setLogInfo(QString))) ; QObject::connect(ConfCertDialog::instance(),SIGNAL(configChanged()),w->networkDialog,SLOT(insertConnect())) ; + QObject::connect(w->peersDialog,SIGNAL(friendsUpdated()),w->networkDialog,SLOT(insertConnect())) ; /* only show window, if not startMinimized */ RshareSettings *_settings = new RshareSettings();