summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorBlaine2020-06-10 10:59:31 +0530
committerBlaine2020-06-10 10:59:31 +0530
commit45cafe050927f9880dbda9a3ac734dbdf43f9e4c (patch)
tree4a28488474b3d3768cc944296cbbb76f2ee345bd /src/main
parenta8378625ec96682910d8d333e132de0e16f48c65 (diff)
downloadChemical-PFD-45cafe050927f9880dbda9a3ac734dbdf43f9e4c.tar.gz
Chemical-PFD-45cafe050927f9880dbda9a3ac734dbdf43f9e4c.tar.bz2
Chemical-PFD-45cafe050927f9880dbda9a3ac734dbdf43f9e4c.zip
add advance to add
Diffstat (limited to 'src/main')
-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):
"""