clean up and remove nodegroupdialog
This commit is contained in:
+11
-3
@@ -1358,10 +1358,10 @@ void Core::SetPreferenceForRenderMode(RenderMode::Mode mode, const QString &pref
|
||||
Config::Current()[GetRenderModePreferencePrefix(mode, preference)] = value;
|
||||
}
|
||||
|
||||
void Core::LabelNodes(const QVector<Node *> &nodes)
|
||||
bool Core::LabelNodes(const QVector<Node *> &nodes, MultiUndoCommand *parent)
|
||||
{
|
||||
if (nodes.isEmpty()) {
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ok;
|
||||
@@ -1390,8 +1390,16 @@ void Core::LabelNodes(const QVector<Node *> &nodes)
|
||||
rename_command->AddNode(n, s);
|
||||
}
|
||||
|
||||
undo_stack_.push(rename_command);
|
||||
if (parent) {
|
||||
parent->add_child(rename_command);
|
||||
} else {
|
||||
undo_stack_.push(rename_command);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Sequence *Core::CreateNewSequenceForProject(Project* project) const
|
||||
|
||||
Reference in New Issue
Block a user