From 65f936b3a4f7d041cf42484287ed5fe83a619923 Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Fri, 28 Oct 2022 20:36:58 +0200 Subject: [PATCH] 1.5.3 --- SandboxiePlus/SandMan/Windows/OptionsWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp b/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp index f4515f59..947fe673 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp @@ -502,6 +502,7 @@ COptionsWindow::COptionsWindow(const QSharedPointer& pBox, const QStri LoadConfig(); + m_pCurrentTab = ui.tabGeneral; UpdateCurrentTab(); ui.buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false); @@ -970,10 +971,12 @@ void COptionsWindow::OnTab(QWidget* pTab) void COptionsWindow::UpdateCurrentTab() { - if (m_pCurrentTab == ui.tabRestrictions || m_pCurrentTab == ui.tabOptions || m_pCurrentTab == ui.tabSecurity) + if (m_pCurrentTab == ui.tabRestrictions || m_pCurrentTab == ui.tabOptions || m_pCurrentTab == ui.tabGeneral) { ui.chkVmRead->setChecked(GetAccessEntry(eIPC, "", eReadOnly, "$:*") != NULL); - + } + else if (m_pCurrentTab ==ui.tabPrivileges || m_pCurrentTab == ui.tabSecurity) + { if (GetAccessEntry(eWnd, "", eOpen, "*") != NULL) { ui.chkAddToJob->setEnabled(false);