Setup connection so that deny friend in peers dialog updates the network view.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1240 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-05-15 12:07:37 +00:00
parent dbfe103e03
commit 2d4bd2f42c
3 changed files with 5 additions and 1 deletions

View File

@ -204,7 +204,7 @@ void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point )
exportfriendAct = new QAction(QIcon(IMAGE_EXPIORTFRIEND), tr( "Export Friend" ), this ); exportfriendAct = new QAction(QIcon(IMAGE_EXPIORTFRIEND), tr( "Export Friend" ), this );
connect( exportfriendAct , SIGNAL( triggered() ), this, SLOT( exportfriend() ) ); 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() ) ); connect( removefriendAct , SIGNAL( triggered() ), this, SLOT( removefriend() ) );
@ -567,6 +567,7 @@ void PeersDialog::removefriend()
if (rsPeers) if (rsPeers)
{ {
rsPeers->removeFriend(getPeerRsCertId(c)); rsPeers->removeFriend(getPeerRsCertId(c));
emit friendsUpdated() ;
} }
} }

View File

@ -104,6 +104,8 @@ private slots:
void getFont(); void getFont();
void underline(); void underline();
signals:
void friendsUpdated() ;
private: private:

View File

@ -175,6 +175,7 @@ int main(int argc, char *argv[])
QObject::connect(notify,SIGNAL(logInfoChanged(const QString&)),w->networkDialog,SLOT(setLogInfo(QString))) ; QObject::connect(notify,SIGNAL(logInfoChanged(const QString&)),w->networkDialog,SLOT(setLogInfo(QString))) ;
QObject::connect(ConfCertDialog::instance(),SIGNAL(configChanged()),w->networkDialog,SLOT(insertConnect())) ; 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 */ /* only show window, if not startMinimized */
RshareSettings *_settings = new RshareSettings(); RshareSettings *_settings = new RshareSettings();