1
0
mirror of https://invent.kde.org/network/krfb synced 2024-07-05 09:28:35 +00:00

Set the control enabled state for new connections correctly when they are launched.

Still need to disallow connection becoming controllable if the prefernces are changed after they are launched as not controllable.

CCBUG: 166447

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1024345
This commit is contained in:
George Goldberg 2009-09-16 12:13:43 +00:00
parent 90e352fb8f
commit 327070588c

View File

@ -216,8 +216,15 @@ void ConnectionController::clipboardToServer(const QString &s)
void ConnectionController::dialogAccepted()
{
ConnectionDialog *dialog = qobject_cast<ConnectionDialog*>(sender());
if (!dialog) {
kWarning() << "Wrong type of sender.";
return;
}
// rfbStartOnHoldClient(cl);
cl->onHold = false;
setControlEnabled(dialog->cbAllowRemoteControl->isChecked());
emit sessionEstablished(remoteIp);
}