This commit is contained in:
DavidXanatos 2024-03-23 12:58:41 +01:00
parent 8b7df9bdc0
commit 6e3e7c81a7
2 changed files with 2 additions and 33 deletions

View File

@ -104,9 +104,8 @@ void COptionsWindow::CreateAdvanced()
connect(ui.chkShowHostProcTmpl, SIGNAL(clicked(bool)), this, SLOT(OnShowHostProcTmpl())); connect(ui.chkShowHostProcTmpl, SIGNAL(clicked(bool)), this, SLOT(OnShowHostProcTmpl()));
connect(ui.chkConfidential, SIGNAL(clicked(bool)), this, SLOT(OnConfidentialChanged())); connect(ui.chkConfidential, SIGNAL(clicked(bool)), this, SLOT(OnConfidentialChanged()));
connect(ui.chkLessConfidential, SIGNAL(clicked(bool)), this, SLOT(OnLessConfidentialChanged())); connect(ui.chkLessConfidential, SIGNAL(clicked(bool)), this, SLOT(OnLessConfidentialChanged()));
connect(ui.chkProtectWindow, SIGNAL(clicked(bool)), this, SLOT(OnProtectChanged())); connect(ui.chkProtectWindow, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged()));
connect(ui.chkBlockCapture, SIGNAL(clicked(bool)), this, SLOT(OnCaptureChanged())); connect(ui.chkBlockCapture, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged()));
//connect(ui.chkLockWhenClose, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged()));
connect(ui.chkNotifyProtect, 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))); connect(ui.treeInjectDll, SIGNAL(itemChanged(QTreeWidgetItem *, int)), this, SLOT(OnToggleInjectDll(QTreeWidgetItem *, int)));
@ -1247,31 +1246,3 @@ void COptionsWindow::SaveDebug()
DbgOption.Changed = false; 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();
}

View File

@ -232,8 +232,6 @@ private slots:
void OnAccessChanged(); void OnAccessChanged();
void OnSysSvcChanged(); void OnSysSvcChanged();
void OnAdvancedChanged(); void OnAdvancedChanged();
void OnProtectChanged();
void OnCaptureChanged();
void OnOpenCOM(); void OnOpenCOM();
void OnIsolationChanged(); void OnIsolationChanged();
void OnDebugChanged(); void OnDebugChanged();