From 87d4e74abd91e6b4691b466236c27a18446e7152 Mon Sep 17 00:00:00 2001 From: offhub <6871698+offhub@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:43:31 +0300 Subject: [PATCH] Update OptionsGeneral.cpp Invert CopyBlockDenyWrite checkbox state for correct behavior --- SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp b/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp index a1067022..d1eaeeec 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp @@ -365,7 +365,7 @@ void COptionsWindow::LoadGeneral() ui.txtCopyLimit->setText(QString::number(iLimit > 0 ? iLimit : 80 * 1024)); ui.chkCopyPrompt->setChecked(m_pBox->GetBool("PromptForFileMigration", true)); 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)); LoadCopyRules(); @@ -496,7 +496,7 @@ void COptionsWindow::SaveGeneral() WriteAdvancedCheck(ui.chkCopyPrompt, "PromptForFileMigration", "", "n"); WriteAdvancedCheck(ui.chkNoCopyWarn, "CopyLimitSilent", "", "y"); - WriteAdvancedCheck(ui.chkDenyWrite, "CopyBlockDenyWrite", "y", ""); + WriteAdvancedCheck(ui.chkDenyWrite, "CopyBlockDenyWrite", "", "y"); WriteAdvancedCheck(ui.chkNoCopyMsg, "NotifyNoCopy", "y", ""); if (ui.chkProtectBox->checkState() == Qt::Checked) {