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:
parent
90e352fb8f
commit
327070588c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user