1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-18 09:18:23 +01:00

fixes #2567 "If file doesn't exist when clicking 'edit file', then you

have to hit save button twice".  The bug affected "edit file" function
in the Address Table object dialog.
This commit is contained in:
Vadim Kurland 2011-07-21 16:37:00 -07:00
parent ff2dba8bab
commit a206d46cde
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,10 @@
2011-07-21 vadim <vadim@netcitadel.com>
* TextFileEditor.cpp (save): fixes #2567 "If file doesn't exist
when clicking 'edit file', then you have to hit save button twice".
The bug affected "edit file" function in the Address Table object
dialog.
* NATCompiler_pf_writers.cpp (_printAddr): fixes #2590 "PF: NAT
compiler fails when run-time address table object is used in a
rule"

View File

@ -117,6 +117,8 @@ void TextFileEditor::save()
owf.write(m_dialog->editor->toPlainText().toAscii().constData()) >= 0)
{
owf.close();
QDialog::accept();
return;
} else
QMessageBox::critical(
this,"Firewall Builder",