#6344 Ensure setting clipboard size limit to 0 disables clipboard sharing

This commit is contained in:
Andrew Nelless 2017-01-30 14:51:24 +00:00 committed by Nick Bolton
parent 3c133380f8
commit 8054bc51a5
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ void ServerConfigDialog::accept()
serverConfig().setEnableDragAndDrop(m_pCheckBoxEnableDragAndDrop->isChecked());
serverConfig().setDisableLockToScreen(m_pCheckBoxDisableLockToScreen->isChecked());
serverConfig().setClipboardSharingSize(m_pSpinBoxClipboardSizeLimit->value() * 1024);
serverConfig().setClipboardSharing(m_pCheckBoxEnableClipboard->isChecked());
serverConfig().setClipboardSharing(m_pCheckBoxEnableClipboard->isChecked()
&& m_pSpinBoxClipboardSizeLimit->value());
// now that the dialog has been accepted, copy the new server config to the original one,
// which is a reference to the one in MainWindow.