فهرست منبع

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

Anna Petrasova 4 سال پیش
والد
کامیت
c9eb39e2fe
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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()