소스 검색

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()