property changed undo for name.
@@ -16,6 +16,9 @@ class PropertyChangedCmd(QUndoCommand):
def __init__(self, node, name, value):
QUndoCommand.__init__(self)
+ if name == 'name':
+ self.setText('renamed "{}" to "{}"'.format(node.name(), value))
+ else:
self.setText('property "{}:{}"'.format(node.name(), name))
self.node = node
self.name = name
