Browse Source

wxGUI/mapswipe: call dialog Uninit only when dialog was actually created, fix for #833 (#836)

Anna Petrasova 4 years ago
parent
commit
c9eb39e2fe
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/mapswipe/frame.py

+ 2 - 1
gui/wxpython/mapswipe/frame.py

@@ -754,7 +754,8 @@ class SwipeMapFrame(DoubleMapFrame):
         self.GetFirstMap().Clean()
         self.GetSecondMap().Clean()
         self._mgr.UnInit()
-        self._inputDialog.UnInit()
+        if self._inputDialog:
+            self._inputDialog.UnInit()
         self.Destroy()