From 548f63b4e7925206ff8b5d91604b5223262e4e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Mon, 9 Sep 2019 20:10:52 +0200 Subject: [PATCH] libgui/GuiCanvasInterface.py:_import(): call reset{Cursor,Undo}() on journal after importing. --- libgui/GuiCanvasInterface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgui/GuiCanvasInterface.py b/libgui/GuiCanvasInterface.py index aea36d1..3fa9cd6 100644 --- a/libgui/GuiCanvasInterface.py +++ b/libgui/GuiCanvasInterface.py @@ -39,6 +39,8 @@ class GuiCanvasInterface(): self.parentCanvas.update(newSize, False, newMap) self.canvasPathName = newPathName self.update(dirty=self.parentCanvas.dirty, pathName=self.canvasPathName, undoLevel=-1) + self.parentCanvas.canvas.journal.resetCursor() + self.parentCanvas.canvas.journal.resetUndo() else: with wx.MessageDialog(self.parentCanvas, "Error: {}".format(error), "", wx.OK | wx.OK_DEFAULT) as dialog: dialogChoice = dialog.ShowModal()