From 8054bc51a5736a9def7d5b4aaf43b71157087231 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Mon, 30 Jan 2017 14:51:24 +0000 Subject: [PATCH] #6344 Ensure setting clipboard size limit to 0 disables clipboard sharing --- src/gui/src/ServerConfigDialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/src/ServerConfigDialog.cpp b/src/gui/src/ServerConfigDialog.cpp index 342ac5dc..8ac16077 100644 --- a/src/gui/src/ServerConfigDialog.cpp +++ b/src/gui/src/ServerConfigDialog.cpp @@ -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.