mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-20 18:27:16 +01:00
* InterfaceDialog.cpp (loadFWObject): fixed #1657 "When no network
zone is defined on the interface, the Interface object editor says it is "Any" which is a lie"
This commit is contained in:
parent
0079bd7a24
commit
769d0d926b
@ -1,5 +1,9 @@
|
||||
2010-08-02 Vadim Kurland <vadim@vk.crocodile.org>
|
||||
|
||||
* InterfaceDialog.cpp (loadFWObject): fixed #1657 "When no network
|
||||
zone is defined on the interface, the Interface object editor says
|
||||
it is "Any" which is a lie"
|
||||
|
||||
* configlets/linux24/run_time_address_tables: fixed #1652 "support
|
||||
for adding single address to address table in the generated
|
||||
script". Generated iptables script now provides functions
|
||||
|
||||
@ -295,7 +295,13 @@ void InterfaceDialog::loadFWObject(FWObject *o)
|
||||
|
||||
QStringList netzoneObjectNames;
|
||||
|
||||
int n=0;
|
||||
int n = 0;
|
||||
|
||||
netzoneObjectIDs[0] = n;
|
||||
netzoneObjectNos[n] = 0;
|
||||
netzoneObjectNames.push_back(" None ");
|
||||
|
||||
++n;
|
||||
|
||||
netzoneObjectIDs[FWObjectDatabase::ANY_ADDRESS_ID] = n;
|
||||
netzoneObjectNos[n] = FWObjectDatabase::ANY_ADDRESS_ID;
|
||||
@ -357,7 +363,7 @@ void InterfaceDialog::loadFWObject(FWObject *o)
|
||||
m_dialog->netzone->addItems( netzoneObjectNames );
|
||||
|
||||
int id = FWObjectDatabase::getIntId(obj->getStr("network_zone"));
|
||||
if (id==-1) id = FWObjectDatabase::ANY_ADDRESS_ID; // any network
|
||||
if (id==-1) id = 0;
|
||||
m_dialog->netzone->setCurrentIndex( netzoneObjectIDs[id] );
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user