mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-12 16:13:13 +02:00
see #2415 call notify() from undo/redo methods of FWCmdRuleNegateRE command
This commit is contained in:
@@ -366,7 +366,7 @@ FWCmdRuleRenameGroup::FWCmdRuleRenameGroup(
|
|||||||
ProjectPanel *project, RuleSet* ruleset, QString oldName, QString newName) :
|
ProjectPanel *project, RuleSet* ruleset, QString oldName, QString newName) :
|
||||||
FWCmdRule(project, ruleset), oldName(oldName), newName(newName)
|
FWCmdRule(project, ruleset), oldName(oldName), newName(newName)
|
||||||
{
|
{
|
||||||
setText(QObject::tr("negate rule element"));
|
setText(QObject::tr("Rename group of rules"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void FWCmdRuleRenameGroup::redoOnModel(RuleSetModel *md)
|
void FWCmdRuleRenameGroup::redoOnModel(RuleSetModel *md)
|
||||||
@@ -519,7 +519,6 @@ void FWCmdRuleChange::redo()
|
|||||||
prepareRuleSetView();
|
prepareRuleSetView();
|
||||||
FWCmdChange::redo();
|
FWCmdChange::redo();
|
||||||
selectAffectedRule();
|
selectAffectedRule();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FWCmdRuleChange::undo()
|
void FWCmdRuleChange::undo()
|
||||||
@@ -682,6 +681,7 @@ void FWCmdRuleNegateRE::redo()
|
|||||||
md->rowChanged(md->index(getRule(), 0));
|
md->rowChanged(md->index(getRule(), 0));
|
||||||
|
|
||||||
selectAffectedRule();
|
selectAffectedRule();
|
||||||
|
notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FWCmdRuleNegateRE::undo()
|
void FWCmdRuleNegateRE::undo()
|
||||||
@@ -695,5 +695,6 @@ void FWCmdRuleNegateRE::undo()
|
|||||||
md->rowChanged(md->index(getRule(), 0));
|
md->rowChanged(md->index(getRule(), 0));
|
||||||
|
|
||||||
selectAffectedRule();
|
selectAffectedRule();
|
||||||
|
notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user