mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-17 10:29:21 +02:00
fixed #1837
"generated script gets .fw suffix even when user set output file name". Suffix .fw should not be appended to the name entered by the user in the "output file name" input field in the firewall settings dialog.
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
2010-11-10 Vadim Kurland <vadim@vk.crocodile.org>
|
2010-11-10 Vadim Kurland <vadim@vk.crocodile.org>
|
||||||
|
|
||||||
|
* FirewallInstaller.cpp (getGeneratedFileFullPath): fixed #1837
|
||||||
|
"generated script gets .fw suffix even when user set output file
|
||||||
|
name". Suffix .fw should not be appended to the name entered by
|
||||||
|
the user in the "output file name" input field in the firewall
|
||||||
|
settings dialog.
|
||||||
|
|
||||||
* PolicyCompiler_ipfw_writers.cpp (processNext): fixed #1836
|
* PolicyCompiler_ipfw_writers.cpp (processNext): fixed #1836
|
||||||
"installer hangs and fails after activation of ipfw policy". As
|
"installer hangs and fails after activation of ipfw policy". As
|
||||||
soon as .fw script swapped ipfw sets usig command "ipfw sawp" and
|
soon as .fw script swapped ipfw sets usig command "ipfw sawp" and
|
||||||
|
|||||||
@@ -820,9 +820,7 @@ QString FirewallInstaller::getGeneratedFileFullPath(Firewall *fw)
|
|||||||
QString ofname = QString::fromUtf8(fwopt->getStr("output_file").c_str());
|
QString ofname = QString::fromUtf8(fwopt->getStr("output_file").c_str());
|
||||||
if (!ofname.isEmpty())
|
if (!ofname.isEmpty())
|
||||||
{
|
{
|
||||||
QFileInfo fi(ofname);
|
generated_file = ofname;
|
||||||
if (fi.suffix() != "fw") generated_file = ofname + ".fw";
|
|
||||||
else generated_file = ofname;
|
|
||||||
} else
|
} else
|
||||||
generated_file = QString::fromUtf8(fw->getName().c_str()) + ".fw";
|
generated_file = QString::fromUtf8(fw->getName().c_str()) + ".fw";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user