From 6e3e7c81a7b305b12d94d4fe7727e24911c00cea Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Sat, 23 Mar 2024 12:58:41 +0100 Subject: [PATCH] ^1.13.4 --- .../SandMan/Windows/OptionsAdvanced.cpp | 33 ++----------------- SandboxiePlus/SandMan/Windows/OptionsWindow.h | 2 -- 2 files changed, 2 insertions(+), 33 deletions(-) diff --git a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp index 58c4ac4e..702a3b70 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp @@ -104,9 +104,8 @@ void COptionsWindow::CreateAdvanced() connect(ui.chkShowHostProcTmpl, SIGNAL(clicked(bool)), this, SLOT(OnShowHostProcTmpl())); connect(ui.chkConfidential, SIGNAL(clicked(bool)), this, SLOT(OnConfidentialChanged())); connect(ui.chkLessConfidential, SIGNAL(clicked(bool)), this, SLOT(OnLessConfidentialChanged())); - connect(ui.chkProtectWindow, SIGNAL(clicked(bool)), this, SLOT(OnProtectChanged())); - connect(ui.chkBlockCapture, SIGNAL(clicked(bool)), this, SLOT(OnCaptureChanged())); - //connect(ui.chkLockWhenClose, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); + connect(ui.chkProtectWindow, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); + connect(ui.chkBlockCapture, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); connect(ui.chkNotifyProtect, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); connect(ui.treeInjectDll, SIGNAL(itemChanged(QTreeWidgetItem *, int)), this, SLOT(OnToggleInjectDll(QTreeWidgetItem *, int))); @@ -1247,31 +1246,3 @@ void COptionsWindow::SaveDebug() DbgOption.Changed = false; } } - -void COptionsWindow::OnCaptureChanged() -{ - if (ui.chkBlockCapture->checkState()) { - ui.chkProtectWindow->setChecked(FALSE); - ui.chkProtectWindow->setCheckable(FALSE); - ui.chkProtectWindow->setEnabled(FALSE); - } - else { - ui.chkProtectWindow->setCheckable(TRUE); - ui.chkProtectWindow->setEnabled(TRUE); - } - OnAdvancedChanged(); -} - -void COptionsWindow::OnProtectChanged() -{ - if (ui.chkProtectWindow->checkState()) { - ui.chkBlockCapture->setChecked(FALSE); - ui.chkBlockCapture->setCheckable(FALSE); - ui.chkBlockCapture->setEnabled(FALSE); - } - else { - ui.chkBlockCapture->setCheckable(TRUE); - ui.chkBlockCapture->setEnabled(TRUE); - } - OnAdvancedChanged(); -} diff --git a/SandboxiePlus/SandMan/Windows/OptionsWindow.h b/SandboxiePlus/SandMan/Windows/OptionsWindow.h index 5bb9acee..2bbab1a1 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsWindow.h +++ b/SandboxiePlus/SandMan/Windows/OptionsWindow.h @@ -232,8 +232,6 @@ private slots: void OnAccessChanged(); void OnSysSvcChanged(); void OnAdvancedChanged(); - void OnProtectChanged(); - void OnCaptureChanged(); void OnOpenCOM(); void OnIsolationChanged(); void OnDebugChanged();