mirror of
https://invent.kde.org/network/krfb
synced 2024-07-01 07:24:29 +00:00
When a new connection comes in, only allow the option of letting the remote control keyboard and mouse if it is allowed in the krfb configuration.
CCBUG: 166447 svn path=/trunk/KDE/kdenetwork/krfb/; revision=1024344
This commit is contained in:
parent
d61a7dbdbd
commit
90e352fb8f
|
@ -132,7 +132,7 @@ enum rfbNewClientAction ConnectionController::handleNewClient()
|
|||
|
||||
ConnectionDialog *dialog = new ConnectionDialog(0);
|
||||
dialog->setRemoteHost(remoteIp);
|
||||
dialog->setAllowRemoteControl( true );
|
||||
dialog->setAllowRemoteControl(KrfbConfig::allowDesktopControl());
|
||||
|
||||
connect(dialog, SIGNAL(okClicked()), SLOT(dialogAccepted()));
|
||||
connect(dialog, SIGNAL(cancelClicked()), SLOT(dialogRejected()));
|
||||
|
|
|
@ -60,6 +60,7 @@ void ConnectionDialog::setRemoteHost( const QString &host )
|
|||
void ConnectionDialog::setAllowRemoteControl( bool b )
|
||||
{
|
||||
cbAllowRemoteControl->setChecked( b );
|
||||
cbAllowRemoteControl->setVisible(b);
|
||||
}
|
||||
|
||||
bool ConnectionDialog::allowRemoteControl()
|
||||
|
|
Loading…
Reference in New Issue
Block a user