#6344 Restore default clipboard sharing size
When clipboard sharing is re-enabled, and the current size limit is 0, make sure that the default size limit is restored
This commit is contained in:
parent
8054bc51a5
commit
88bf4b2e47
|
@ -221,6 +221,10 @@ void ServerConfigDialog::on_m_pButtonRemoveAction_clicked()
|
|||
void ServerConfigDialog::on_m_pCheckBoxEnableClipboard_stateChanged(int const state)
|
||||
{
|
||||
m_pSpinBoxClipboardSizeLimit->setEnabled (state == Qt::Checked);
|
||||
if ((state == Qt::Checked) && (!m_pSpinBoxClipboardSizeLimit->value())) {
|
||||
int size = (serverConfig().defaultClipboardSharingSize() + 512) / 1024;
|
||||
m_pSpinBoxClipboardSizeLimit->setValue (size ? size : 1);
|
||||
}
|
||||
}
|
||||
|
||||
void ServerConfigDialog::on_m_pListActions_itemSelectionChanged()
|
||||
|
|
Loading…
Reference in New Issue