1
0
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:
George Goldberg 2009-09-16 12:13:38 +00:00
parent d61a7dbdbd
commit 90e352fb8f
2 changed files with 2 additions and 1 deletions

View File

@ -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()));

View File

@ -60,6 +60,7 @@ void ConnectionDialog::setRemoteHost( const QString &host )
void ConnectionDialog::setAllowRemoteControl( bool b )
{
cbAllowRemoteControl->setChecked( b );
cbAllowRemoteControl->setVisible(b);
}
bool ConnectionDialog::allowRemoteControl()