mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:31:16 -07: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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user