[ui][commands] Duplicate/UpgradeNode: return created Node instances

This commit is contained in:
Yann Lanthony 2018-07-26 22:00:27 +02:00
parent 734540abba
commit 830173047c
3 changed files with 9 additions and 9 deletions

View file

@ -417,10 +417,10 @@ class UIGraph(QObject):
"""
return self.push(commands.DuplicateNodeCommand(self._graph, srcNode, duplicateFollowingNodes))
@Slot(CompatibilityNode)
@Slot(CompatibilityNode, result=Node)
def upgradeNode(self, node):
""" Upgrade a CompatibilityNode. """
self.push(commands.UpgradeNodeCommand(self._graph, node))
return self.push(commands.UpgradeNodeCommand(self._graph, node))
@Slot()
def upgradeAllNodes(self):