see #2000 New dialog window in New Firewall wizard for ASA / PIX - Network Zone explanation; when network zone is set to "None", set attribute network_zone to an empty string

This commit is contained in:
Vadim Kurland
2011-01-30 16:23:12 -08:00
parent 83bfab658c
commit bffebde77c
+7 -2
View File
@@ -1118,8 +1118,13 @@ void newFirewallDialog::finishClicked()
QComboBox *cb = dynamic_cast<QComboBox*>(
m_dialog->iface_nz_list->cellWidget(row, 3));
assert(cb!=NULL);
network_zone_str_id = FWObjectDatabase::getStringId(
cb->itemData(cb->currentIndex(), Qt::UserRole).toInt());
int network_zone_int_id =
cb->itemData(cb->currentIndex(), Qt::UserRole).toInt();
if (network_zone_int_id != 0)
network_zone_str_id = FWObjectDatabase::getStringId(
network_zone_int_id);
else
network_zone_str_id = "";
}
Interface *oi = Interface::cast(db->create(Interface::TYPENAME));