This commit is contained in:
DavidXanatos 2023-05-21 16:29:15 +02:00
parent 26a8ab0e69
commit ef73e36f80
2 changed files with 16 additions and 5 deletions

View File

@ -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 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 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 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) - fixed Name column in the sandbox view should never be hidden [#2933](https://github.com/sandboxie-plus/Sandboxie/issues/2933)

View File

@ -151,6 +151,7 @@ void COptionsWindow::LoadBlockINet()
QTreeWidgetItem* pItem = new QTreeWidgetItem(); QTreeWidgetItem* pItem = new QTreeWidgetItem();
pItem->setCheckState(0, (Mode & 0x10) != 0 ? Qt::Unchecked : Qt::Checked); pItem->setCheckState(0, (Mode & 0x10) != 0 ? Qt::Unchecked : Qt::Checked);
Mode &= ~0x10;
SetProgramItem(Value, pItem, 0); SetProgramItem(Value, pItem, 0);
@ -237,6 +238,9 @@ void COptionsWindow::OnINetChanged(QTreeWidgetItem* pItem, int Column)
AddProgramToGroup(Program, INetModeToGroup(Mode)); AddProgramToGroup(Program, INetModeToGroup(Mode));
} }
} }
m_INetBlockChanged = true;
OnOptChanged();
} }
void COptionsWindow::CloseINetEdit(bool bSave) void COptionsWindow::CloseINetEdit(bool bSave)
@ -270,6 +274,10 @@ void COptionsWindow::CloseINetEdit(QTreeWidgetItem* pItem, bool bSave)
QString NewProgram = pCombo->currentText(); 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(); int NewMode = pMode->currentData().toInt();
if (pItem->checkState(0) == Qt::Unchecked) if (pItem->checkState(0) == Qt::Unchecked)
NewMode |= 0x10; NewMode |= 0x10;
@ -280,6 +288,9 @@ void COptionsWindow::CloseINetEdit(QTreeWidgetItem* pItem, bool bSave)
pItem->setText(1, GetINetModeStr(NewMode)); pItem->setText(1, GetINetModeStr(NewMode));
pItem->setData(1, Qt::UserRole, NewMode); pItem->setData(1, Qt::UserRole, NewMode);
m_INetBlockChanged = true;
OnOptChanged();
} }
ui.treeINet->setItemWidget(pItem, 0, NULL); ui.treeINet->setItemWidget(pItem, 0, NULL);
@ -326,8 +337,8 @@ void COptionsWindow::OnAddINetProg()
AddProgramToGroup(Value, INetModeToGroup(Mode)); AddProgramToGroup(Value, INetModeToGroup(Mode));
//m_INetBlockChanged = true; m_INetBlockChanged = true;
//OnOptChanged(); OnOptChanged();
} }
void COptionsWindow::OnDelINetProg() void COptionsWindow::OnDelINetProg()
@ -344,8 +355,8 @@ void COptionsWindow::OnDelINetProg()
delete pItem; delete pItem;
//m_INetBlockChanged = true; m_INetBlockChanged = true;
//OnOptChanged(); OnOptChanged();
} }
bool COptionsWindow::FindEntryInSettingList(const QString& Name, const QString& Value) bool COptionsWindow::FindEntryInSettingList(const QString& Name, const QString& Value)