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 c5630fb commit 916dba1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gui/wxpython/psmap/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,10 @@ def OnCmdDone(self, event):
if event.userData["temp"]:
grass.try_remove(event.userData["filename"])

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

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

0 comments on commit 916dba1

Please sign in to comment.