diff options
author | Blaine | 2020-06-10 10:59:31 +0530 |
---|---|---|
committer | Blaine | 2020-06-10 11:29:50 +0530 |
commit | 906fbca43a398e96af6f908dda5730ecb24b9df9 (patch) | |
tree | 3bd5420027800a39ead916f91687a75346243d0a | |
parent | c12a8397e195e2b517eb98a894b7a03886208b24 (diff) | |
download | Chemical-PFD-906fbca43a398e96af6f908dda5730ecb24b9df9.tar.gz Chemical-PFD-906fbca43a398e96af6f908dda5730ecb24b9df9.tar.bz2 Chemical-PFD-906fbca43a398e96af6f908dda5730ecb24b9df9.zip |
add advance to add
-rw-r--r-- | src/main/python/utils/undo.py | 3 |
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): """ |