fixed wrong signal connection

This commit is contained in:
csoler 2016-05-14 11:48:23 -04:00
parent aa80ffd5e6
commit 9e182414c1

View File

@ -715,9 +715,9 @@ void IdDialog::CircleListCustomPopupMenu( QPoint )
QAction *action = new QAction(QIcon(image_names[i]), menu_titles[i] + " " + id_name,this) ;
if(i <2)
QObject::connect(action,SLOT(), this, SLOT(acceptCircleSubscription()));
QObject::connect(action,SIGNAL(triggered()), this, SLOT(acceptCircleSubscription()));
else
QObject::connect(action,SLOT(), this, SLOT(cancelCircleSubscription()));
QObject::connect(action,SIGNAL(triggered()), this, SLOT(cancelCircleSubscription()));
action->setData(QString::fromStdString(ids[i][0].toStdString()));
contextMnu.addAction(action) ;
@ -738,9 +738,9 @@ void IdDialog::CircleListCustomPopupMenu( QPoint )
QAction *action = new QAction(QIcon(image_names[i]), id_name,this) ;
if(i <2)
QObject::connect(action,SLOT(), this, SLOT(acceptCircleSubscription()));
QObject::connect(action,SIGNAL(triggered()), this, SLOT(acceptCircleSubscription()));
else
QObject::connect(action,SLOT(), this, SLOT(cancelCircleSubscription()));
QObject::connect(action,SIGNAL(triggered()), this, SLOT(cancelCircleSubscription()));
action->setData(QString::fromStdString(ids[i][j].toStdString()));
menu->addAction(action) ;