[GRASS-SVN] r65227 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 12 12:20:49 PDT 2015
Author: martinl
Date: 2015-05-12 12:20:49 -0700 (Tue, 12 May 2015)
New Revision: 65227
Modified:
grass/trunk/gui/wxpython/core/render.py
Log:
wxGUI: fix calling wx.EndBusyCursor() on Windows (render in threads)
Modified: grass/trunk/gui/wxpython/core/render.py
===================================================================
--- grass/trunk/gui/wxpython/core/render.py 2015-05-12 18:13:47 UTC (rev 65226)
+++ grass/trunk/gui/wxpython/core/render.py 2015-05-12 19:20:49 UTC (rev 65227)
@@ -533,7 +533,8 @@
(stop - self._startTime, stop - startCompTime))
self._rendering = False
- wx.EndBusyCursor()
+ if wx.IsBusy():
+ wx.EndBusyCursor()
self.updateMap.emit()
@@ -544,7 +545,8 @@
layer.GetRenderMgr().Abort()
self._init()
- wx.EndBusyCursor()
+ if wx.IsBusy():
+ wx.EndBusyCursor()
self.updateProgress.emit(range=0, value=0, text=_("Rendering aborted"))
def ReportProgress(self, layer=None):
More information about the grass-commit
mailing list