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 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)

View File

@ -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)