Преглед изворни кода

wxGUI/d.mon: fix exiting (https://trac.osgeo.org/grass/ticket/3897)

Anna Petrasova пре 5 година
родитељ
комит
796ebb2bfd
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      gui/wxpython/mapdisp/main.py

+ 3 - 1
gui/wxpython/mapdisp/main.py

@@ -560,10 +560,12 @@ class MapApp(wx.App):
     def OnExit(self):
         if __name__ == "__main__":
             # stop the timer
-            # self.timer.Stop()
+            if self.timer.IsRunning:
+                self.timer.Stop()
             # terminate thread
             for f in six.itervalues(monFile):
                 try_remove(f)
+        return True
 
     def watcher(self):
         """Redraw, if new layer appears (check's timestamp of