소스 검색

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

Anna Petrasova 5 년 전
부모
커밋
3203d40893
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      gui/wxpython/mapswipe/frame.py

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

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