summaryrefslogtreecommitdiff
path: root/src/main/python
diff options
context:
space:
mode:
authorBlaine2020-06-10 10:59:31 +0530
committerBlaine2020-06-10 11:29:50 +0530
commit906fbca43a398e96af6f908dda5730ecb24b9df9 (patch)
tree3bd5420027800a39ead916f91687a75346243d0a /src/main/python
parentc12a8397e195e2b517eb98a894b7a03886208b24 (diff)
downloadChemical-PFD-906fbca43a398e96af6f908dda5730ecb24b9df9.tar.gz
Chemical-PFD-906fbca43a398e96af6f908dda5730ecb24b9df9.tar.bz2
Chemical-PFD-906fbca43a398e96af6f908dda5730ecb24b9df9.zip
add advance to add
Diffstat (limited to 'src/main/python')
-rw-r--r--src/main/python/utils/undo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/python/utils/undo.py b/src/main/python/utils/undo.py
index 7979bf3..b060550 100644
--- a/src/main/python/utils/undo.py
+++ b/src/main/python/utils/undo.py
@@ -31,12 +31,13 @@ class addCommand(QUndoCommand):
def undo(self):
self.scene.removeItem(self.diagramItem)
self.scene.update()
+ self.scene.advance()
def redo(self):
self.scene.addItem(self.diagramItem)
self.diagramItem.setPos(self.itemPos)
self.scene.clearSelection()
- self.scene.update()
+ self.scene.advance()
class deleteCommand(QUndoCommand):
"""