This commit is contained in:
DavidXanatos 2022-09-19 08:29:54 +02:00
parent 1bc2da8113
commit 5f0351464a
2 changed files with 7 additions and 6 deletions

View File

@ -21,6 +21,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- fixed move sandbox menu issue [#2225](https://github.com/sandboxie-plus/Sandboxie/issues/2225) (thanks okrc)
- fixed issues with stale data in Sandboxie-Plus.ini [#2234](https://github.com/sandboxie-plus/Sandboxie/pull/2234) (thanks okrc)
- fixed autostart issue [#2219](https://github.com/sandboxie-plus/Sandboxie/issues/2219)
- fixed firewall UI issue, all programs entries were missing *, prefix [#2247](https://github.com/sandboxie-plus/Sandboxie/issues/2247)
### Removed
- removed obsolete VPNTunnel template

View File

@ -430,7 +430,7 @@ void COptionsWindow::ParseAndAddFwRule(const QString& Value, bool disabled, cons
QString Action = ProgAction.second.isEmpty() ? ProgAction.first : ProgAction.second;
pItem->setData(0, Qt::UserRole, Program);
bool bAll = Program.isEmpty();
bool bAll = Program.isEmpty() || Program == "*";
if (bAll)
Program = tr("All Programs");
bool Not = Program.left(1) == "!";
@ -479,11 +479,11 @@ void COptionsWindow::SaveNetFwRules()
QString Prot = pItem->text(4);
QString Temp = GetFwRuleActionStr(Action);
if (!Program.isEmpty()) {
//if (Program.contains("=") || Program.contains(";") || Program.contains(",")) // todo: make sbie parse this proeprly
// Program = "\'" + Program + "\'";
Temp.prepend(Program + ",");
}
//if (Program.contains("=") || Program.contains(";") || Program.contains(",")) // todo: make sbie parse this proeprly
// Program = "\'" + Program + "\'";
if (Program.isEmpty())
Program = "*";
Temp.prepend(Program + ",");
QStringList Tags = QStringList(Temp);
if (!Port.isEmpty()) Tags.append("Port=" + Port);
if (!IP.isEmpty()) Tags.append("Address=" + IP);