Skip to content

Commit

Permalink
wxGUI/rlisetup: dissociate the managed window from the manager ('wx.a…
Browse files Browse the repository at this point in the history
…ui.AuiManager' instance) before destroy wizard window (#1196)
  • Loading branch information
tmszi committed Jan 7, 2021
1 parent e7fded2 commit ef87a97
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gui/wxpython/rlisetup/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ def __init__(self, parent):
self._cleanup()
dlg.Destroy()
else:
self._cleanup()
self.wizard.Destroy()
GMessage(parent=self.parent,
message=_("r.li.setup wizard canceled. "
"Configuration file not created."))
self._cleanup()

def _write_confile(self):
"""Write the configuration file"""
Expand Down Expand Up @@ -476,6 +476,12 @@ def _cleanup(self):
self.moving.width = ''
self.moving.height = ''
self.moving.boxtype = ''
for page in (self.drawsampleframepage,
self.regions,
self.drawsampleunitspage,
self.vectorareas):
if page.mapPanel:
page.mapPanel._mgr.UnInit()


class FirstPage(TitledPage):
Expand Down

0 comments on commit ef87a97

Please sign in to comment.