Skip to content

Commit

Permalink
wxGUI/psmap: don't set StatusBar widget text when frame is closed (#2487
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tmszi committed Oct 25, 2022
1 parent 225a4f8 commit 0bae183
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/wxpython/psmap/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ def OnCmdDone(self, event):
grass.try_remove(event.userData['filename'])

self.delayedCall = wx.CallLater(
4000, lambda: self.SetStatusText("", 0))
4000,
lambda: self.SetStatusText("", 0) if self else None,
)

def getFile(self, wildcard):
suffix = []
Expand Down

0 comments on commit 0bae183

Please sign in to comment.