From ef73e36f800bd0f5f89af2079ff4d50af193b05a Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Sun, 21 May 2023 16:29:15 +0200 Subject: [PATCH] 1.9.4 --- CHANGELOG.md | 2 +- .../SandMan/Windows/OptionsNetwork.cpp | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfb23666..dabc5eb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,7 +37,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - fixed System tray icon hourglass overlay gets stuck when operation is stopped [#2869](https://github.com/sandboxie-plus/Sandboxie/issues/2869) - fixed File Panel doesn't allow to adjust columns size in a permanent way [#2930](https://github.com/sandboxie-plus/Sandboxie/issues/2930) - fixed Renaming a box with sandboxed run entries can break those entries. [#2921](https://github.com/sandboxie-plus/Sandboxie/issues/2921) -- fixed WFP not enabled after Setup Wizard [#2915](https://github.com/sandboxie-plus/Sandboxie/issues/2915) +- fixed WFP not enabled after Setup Wizard and other issues [#2915](https://github.com/sandboxie-plus/Sandboxie/issues/2915) - fixed Name column in the sandbox view should never be hidden [#2933](https://github.com/sandboxie-plus/Sandboxie/issues/2933) diff --git a/SandboxiePlus/SandMan/Windows/OptionsNetwork.cpp b/SandboxiePlus/SandMan/Windows/OptionsNetwork.cpp index bb773003..777e38d5 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsNetwork.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsNetwork.cpp @@ -151,6 +151,7 @@ void COptionsWindow::LoadBlockINet() QTreeWidgetItem* pItem = new QTreeWidgetItem(); pItem->setCheckState(0, (Mode & 0x10) != 0 ? Qt::Unchecked : Qt::Checked); + Mode &= ~0x10; SetProgramItem(Value, pItem, 0); @@ -237,6 +238,9 @@ void COptionsWindow::OnINetChanged(QTreeWidgetItem* pItem, int Column) AddProgramToGroup(Program, INetModeToGroup(Mode)); } } + + m_INetBlockChanged = true; + OnOptChanged(); } void COptionsWindow::CloseINetEdit(bool bSave) @@ -270,6 +274,10 @@ void COptionsWindow::CloseINetEdit(QTreeWidgetItem* pItem, bool bSave) QString NewProgram = pCombo->currentText(); + if (NewProgram.isEmpty()) { + QMessageBox::warning(this, "SandboxiePlus", tr("A non empty program name is required.")); + return; + } int NewMode = pMode->currentData().toInt(); if (pItem->checkState(0) == Qt::Unchecked) NewMode |= 0x10; @@ -280,6 +288,9 @@ void COptionsWindow::CloseINetEdit(QTreeWidgetItem* pItem, bool bSave) pItem->setText(1, GetINetModeStr(NewMode)); pItem->setData(1, Qt::UserRole, NewMode); + + m_INetBlockChanged = true; + OnOptChanged(); } ui.treeINet->setItemWidget(pItem, 0, NULL); @@ -326,8 +337,8 @@ void COptionsWindow::OnAddINetProg() AddProgramToGroup(Value, INetModeToGroup(Mode)); - //m_INetBlockChanged = true; - //OnOptChanged(); + m_INetBlockChanged = true; + OnOptChanged(); } void COptionsWindow::OnDelINetProg() @@ -344,8 +355,8 @@ void COptionsWindow::OnDelINetProg() delete pItem; - //m_INetBlockChanged = true; - //OnOptChanged(); + m_INetBlockChanged = true; + OnOptChanged(); } bool COptionsWindow::FindEntryInSettingList(const QString& Name, const QString& Value)