Skip to content

Commit

Permalink
wxGUI/mapswipe: call dialog Uninit only when dialog was actually crea…
Browse files Browse the repository at this point in the history
…ted, fix for #833 (#836)
  • Loading branch information
petrasovaa committed Jul 26, 2020
1 parent 7da646a commit c9eb39e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/wxpython/mapswipe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,8 @@ def OnCloseWindow(self, event):
self.GetFirstMap().Clean()
self.GetSecondMap().Clean()
self._mgr.UnInit()
self._inputDialog.UnInit()
if self._inputDialog:
self._inputDialog.UnInit()
self.Destroy()


Expand Down

0 comments on commit c9eb39e

Please sign in to comment.