From ec53c261b4c9a2b24d0e81e3b8ca50c50b50144b Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Sun, 23 Oct 2022 12:50:12 +0200 Subject: [PATCH] 1.5.1 --- CHANGELOG.md | 1 + SandboxiePlus/SandMan/Windows/OptionsWindow.cpp | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb139712..ec073bb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - fixed issues when reanaming a sandbox with a custom path [#2368](https://github.com/sandboxie-plus/Sandboxie/issues/2368) - proeprly fixed the firefox 106 issue +- fixed issue with alternative UI modes [#2380](https://github.com/sandboxie-plus/Sandboxie/issues/2380) diff --git a/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp b/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp index 0eab28c4..79d14f57 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp @@ -217,6 +217,9 @@ COptionsWindow::COptionsWindow(const QSharedPointer& pBox, const QStri if ((QGuiApplication::queryKeyboardModifiers() & Qt::AltModifier) != 0) iOptionLayout = !iOptionLayout; + QWidget* pDummy = new QWidget(this); + pDummy->setVisible(false); + ui.tabs->removeTab(9); // remove unused variouse options tab // re structure the UI a bit @@ -264,16 +267,16 @@ COptionsWindow::COptionsWindow(const QSharedPointer& pBox, const QStri { if (iOptionLayout == 1) { //ui.tabs->removeTab(7); // ini edit - ui.tabs->removeTab(5); // advanced + ui.tabAdvanced->setParent(pDummy); //ui.tabs->removeTab(5); // advanced //ui.tabsForce->removeTab(2); // breakout } else { //ui.tabs->removeTab(11); // ini edit - ui.tabs->removeTab(9); // advanced + ui.tabAdvanced->setParent(pDummy); //ui.tabs->removeTab(9); // advanced //ui.tabsForce->removeTab(1); // breakout } - ui.tabsSecurity->removeTab(3); // advanced security - ui.tabsSecurity->removeTab(2); // security isolation + ui.tabPrivileges->setParent(pDummy); //ui.tabsSecurity->removeTab(3); // advanced security + ui.tabIsolation->setParent(pDummy); //ui.tabsSecurity->removeTab(1); // security isolation //ui.tabsAccess->removeTab(5); // policy ui.treeOptions = NULL; }