Skip to content

Commit

Permalink
wxGUI: always show preferences dialogs as modeless (#1132)
Browse files Browse the repository at this point in the history
Fixes irrecoverable state after closing dialog on Mac.
  • Loading branch information
nilason authored and petrasovaa committed Dec 1, 2020
1 parent 21e57e7 commit 6ed2015
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gui/wxpython/animation/frame.py
Expand Up @@ -312,7 +312,7 @@ def OnPreferences(self, event):
lambda: self.controller.UpdateAnimations())
dlg.CenterOnParent()

self.dialogs['preferences'].ShowModal()
self.dialogs['preferences'].Show()

def OnHelp(self, event):
RunCommand('g.manual',
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/gmodeler/frame.py
Expand Up @@ -373,7 +373,7 @@ def OnPreferences(self, event):
dlg = PreferencesDialog(parent=self, giface=self._giface)
dlg.CenterOnParent()

dlg.ShowModal()
dlg.Show()
self.canvas.Refresh()

def OnHelp(self, event):
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/mapswipe/frame.py
Expand Up @@ -751,7 +751,7 @@ def OnPreferences(self, event):
self._preferencesDialog = dlg
self._preferencesDialog.CenterOnParent()

self._preferencesDialog.ShowModal()
self._preferencesDialog.Show()

def OnCloseWindow(self, event):
self.GetFirstMap().Clean()
Expand Down

0 comments on commit 6ed2015

Please sign in to comment.