From 906fbca43a398e96af6f908dda5730ecb24b9df9 Mon Sep 17 00:00:00 2001 From: Blaine Date: Wed, 10 Jun 2020 10:59:31 +0530 Subject: add advance to add --- src/main/python/utils/undo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/python') 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): """ -- cgit