Update OptionsNetwork.cpp

This commit is contained in:
DavidXanatos 2022-03-12 20:17:45 +01:00
parent e210a64ae2
commit a1afe0a4de
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ void COptionsWindow::ParseAndAddFwRule(const QString& Value, bool disabled, cons
//NetworkAccess=explorer.exe,Allow;Port=137,138,139,445;Address=192.168.0.1-192.168.100.255;Protocol=TCP;
QString FirstStr;
TArguments Tags = GetArguments(Value, L';', L'=', &FirstStr);
TArguments Tags = GetArguments(Value, L';', L'=', &FirstStr, true);
StrPair ProgAction = Split2(FirstStr, ",", true);
QString Program = ProgAction.second.isEmpty() ? "" : ProgAction.first;
QString Action = ProgAction.second.isEmpty() ? ProgAction.first : ProgAction.second;