mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05:00
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:
parent
dbfe103e03
commit
2d4bd2f42c
@ -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() ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,6 +104,8 @@ private slots:
|
|||||||
void getFont();
|
void getFont();
|
||||||
void underline();
|
void underline();
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void friendsUpdated() ;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user