1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-24 04:07:55 +01:00

* ActionsDialog.cpp (fillInterfaces): fixed #1872: "vlan interface

does not appear in the list of interfaces for route-to action for
PF".
This commit is contained in:
Vadim Kurland 2010-12-16 19:12:11 -08:00
parent 3d0d4da23a
commit ee69d25612

View File

@ -451,10 +451,13 @@ void ActionsDialog::fillInterfaces(QComboBox* cb)
cb->clear();
cb->addItem("");
FWObjectTypedChildIterator j=firewall->findByType(Interface::TYPENAME);
for (; j!=j.end(); ++j )
list<FWObject*> interfaces = firewall->getByTypeDeep(Interface::TYPENAME);
for (list<FWObject*>::iterator i=interfaces.begin(); i!=interfaces.end(); ++i)
{
cb->addItem(QString::fromUtf8((*j)->getName().c_str()) );
Interface *iface = Interface::cast(*i);
assert(iface);
cb->addItem(iface->getName().c_str());
}
}