Update OptionsGeneral.cpp
Invert CopyBlockDenyWrite checkbox state for correct behavior
This commit is contained in:
parent
503775f646
commit
87d4e74abd
|
@ -365,7 +365,7 @@ void COptionsWindow::LoadGeneral()
|
||||||
ui.txtCopyLimit->setText(QString::number(iLimit > 0 ? iLimit : 80 * 1024));
|
ui.txtCopyLimit->setText(QString::number(iLimit > 0 ? iLimit : 80 * 1024));
|
||||||
ui.chkCopyPrompt->setChecked(m_pBox->GetBool("PromptForFileMigration", true));
|
ui.chkCopyPrompt->setChecked(m_pBox->GetBool("PromptForFileMigration", true));
|
||||||
ui.chkNoCopyWarn->setChecked(!m_pBox->GetBool("CopyLimitSilent", false));
|
ui.chkNoCopyWarn->setChecked(!m_pBox->GetBool("CopyLimitSilent", false));
|
||||||
ui.chkDenyWrite->setChecked(m_pBox->GetBool("CopyBlockDenyWrite", false));
|
ui.chkDenyWrite->setChecked(!m_pBox->GetBool("CopyBlockDenyWrite", false));
|
||||||
ui.chkNoCopyMsg->setChecked(m_pBox->GetBool("NotifyNoCopy", false));
|
ui.chkNoCopyMsg->setChecked(m_pBox->GetBool("NotifyNoCopy", false));
|
||||||
|
|
||||||
LoadCopyRules();
|
LoadCopyRules();
|
||||||
|
@ -496,7 +496,7 @@ void COptionsWindow::SaveGeneral()
|
||||||
|
|
||||||
WriteAdvancedCheck(ui.chkCopyPrompt, "PromptForFileMigration", "", "n");
|
WriteAdvancedCheck(ui.chkCopyPrompt, "PromptForFileMigration", "", "n");
|
||||||
WriteAdvancedCheck(ui.chkNoCopyWarn, "CopyLimitSilent", "", "y");
|
WriteAdvancedCheck(ui.chkNoCopyWarn, "CopyLimitSilent", "", "y");
|
||||||
WriteAdvancedCheck(ui.chkDenyWrite, "CopyBlockDenyWrite", "y", "");
|
WriteAdvancedCheck(ui.chkDenyWrite, "CopyBlockDenyWrite", "", "y");
|
||||||
WriteAdvancedCheck(ui.chkNoCopyMsg, "NotifyNoCopy", "y", "");
|
WriteAdvancedCheck(ui.chkNoCopyMsg, "NotifyNoCopy", "y", "");
|
||||||
|
|
||||||
if (ui.chkProtectBox->checkState() == Qt::Checked) {
|
if (ui.chkProtectBox->checkState() == Qt::Checked) {
|
||||||
|
|
Loading…
Reference in New Issue