From 206ac04bf0ce2eacbead5beec6e152127c15a2c3 Mon Sep 17 00:00:00 2001 From: Tomas Zigo <50632337+tmszi@users.noreply.github.com> Date: Tue, 25 Oct 2022 19:32:46 +0200 Subject: [PATCH] wxGUI/psmap: don't set StatusBar widget text when frame is closed (#2487) --- gui/wxpython/psmap/frame.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/wxpython/psmap/frame.py b/gui/wxpython/psmap/frame.py index e0a5d20a0fa..b31b154d924 100644 --- a/gui/wxpython/psmap/frame.py +++ b/gui/wxpython/psmap/frame.py @@ -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 = []