mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-14 00:49:09 +02:00
fixed GUI crash that happened when user created a cluster from two firewalls and was in the state when no rule was selected in the policy currently opened in the panel on the right
This commit is contained in:
@@ -2369,7 +2369,11 @@ void RuleSetView::saveCurrentRowColumn(SelectionMemento &memento)
|
||||
if (node && node->rule)
|
||||
{
|
||||
memento.column = index.column();
|
||||
memento.rule_id = node->rule->getId();
|
||||
FWObject *rule = node->rule;
|
||||
if (rule)
|
||||
memento.rule_id = node->rule->getId();
|
||||
else
|
||||
memento.rule_id = -1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user