summaryrefslogtreecommitdiff
path: root/src/main/python/utils/undo.py
diff options
context:
space:
mode:
authorBlaine2020-05-28 11:31:18 +0530
committerBlaine2020-05-28 11:31:18 +0530
commitbfa54b1ee6857bdade637b581c18ac2cf6f96905 (patch)
tree7abe1e7d4634bfc13d53970c169982753fbd6cdb /src/main/python/utils/undo.py
parent7606d7bb27ce1f9de890f4c8a84232f4649c62bf (diff)
downloadChemical-PFD-bfa54b1ee6857bdade637b581c18ac2cf6f96905.tar.gz
Chemical-PFD-bfa54b1ee6857bdade637b581c18ac2cf6f96905.tar.bz2
Chemical-PFD-bfa54b1ee6857bdade637b581c18ac2cf6f96905.zip
upstream undo
Diffstat (limited to 'src/main/python/utils/undo.py')
-rw-r--r--src/main/python/utils/undo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/python/utils/undo.py b/src/main/python/utils/undo.py
index 3a64d41..cf539e7 100644
--- a/src/main/python/utils/undo.py
+++ b/src/main/python/utils/undo.py
@@ -11,6 +11,10 @@ regex = compile(r"([a-z][A-Z])")
def objectName(obj):
name = regex.sub(repl, obj.m_type if obj.__class__.__name__ == 'NodeItem' else obj.__class__.__name__)
+ # if obj.__class__.__name__ != 'line':
+ # name = 'Draw ' + name[0].upper() + name[1:]
+ # else:
+ # name = 'Add ' +
return name[0].upper() + name[1:] + ' symbol'
class addCommand(QUndoCommand):