Fixed clipboard transmission messing up start/stop $4745
This commit is contained in:
parent
8d0fdee5ce
commit
22e8d3d03a
|
@ -813,7 +813,7 @@ void MainWindow::setSynergyState(qSynergyState state)
|
||||||
m_pButtonToggleStart->setText(tr("&Stop"));
|
m_pButtonToggleStart->setText(tr("&Stop"));
|
||||||
m_pButtonApply->setEnabled(true);
|
m_pButtonApply->setEnabled(true);
|
||||||
}
|
}
|
||||||
else
|
else if (state == synergyDisconnected)
|
||||||
{
|
{
|
||||||
disconnect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStopSynergy, SLOT(trigger()));
|
disconnect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStopSynergy, SLOT(trigger()));
|
||||||
connect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStartSynergy, SLOT(trigger()));
|
connect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStartSynergy, SLOT(trigger()));
|
||||||
|
@ -821,7 +821,10 @@ void MainWindow::setSynergyState(qSynergyState state)
|
||||||
m_pButtonApply->setEnabled(false);
|
m_pButtonApply->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool connected = state == synergyConnected;
|
bool connected = false;
|
||||||
|
if (state == synergyConnected || state == synergyTransfering) {
|
||||||
|
connected = true;
|
||||||
|
}
|
||||||
|
|
||||||
m_pActionStartSynergy->setEnabled(!connected);
|
m_pActionStartSynergy->setEnabled(!connected);
|
||||||
m_pActionStopSynergy->setEnabled(connected);
|
m_pActionStopSynergy->setEnabled(connected);
|
||||||
|
|
Loading…
Reference in New Issue