diff --git a/client/portswindow.cpp b/client/portswindow.cpp index ce145d4..c526fa2 100644 --- a/client/portswindow.cpp +++ b/client/portswindow.cpp @@ -97,8 +97,10 @@ PortsWindow::PortsWindow(PortGroupList *pgl, QWidget *parent) connect(plm->getPortModel(), SIGNAL(modelReset()), SLOT(when_portModel_reset())); + connect(actionPort_Configuration, SIGNAL(triggered()), + SLOT(when_actionPort_Configuration_triggered())); connect(tvPortList, SIGNAL(activated(const QModelIndex&)), - SLOT(on_actionPort_Configuration_triggered(const QModelIndex&))); + SLOT(when_actionPort_Configuration_triggered(const QModelIndex&))); connect(tvPortList->selectionModel(), SIGNAL(currentChanged(const QModelIndex&, const QModelIndex&)), this, SLOT(when_portView_currentChanged(const QModelIndex&, @@ -599,7 +601,7 @@ void PortsWindow::on_actionExclusive_Control_triggered(bool checked) } } -void PortsWindow::on_actionPort_Configuration_triggered( +void PortsWindow::when_actionPort_Configuration_triggered( const QModelIndex &portIndex) { QModelIndex current = portIndex.isValid() ? diff --git a/client/portswindow.h b/client/portswindow.h index 7c99f12..34f055a 100644 --- a/client/portswindow.h +++ b/client/portswindow.h @@ -80,7 +80,7 @@ private slots: void on_actionDisconnect_Port_Group_triggered(); void on_actionExclusive_Control_triggered(bool checked); - void on_actionPort_Configuration_triggered( + void when_actionPort_Configuration_triggered( const QModelIndex &portIndex = QModelIndex()); private: