[GRASS-SVN] r71976 - grass/trunk/gui/wxpython/startup

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 26 11:47:44 PST 2017


Author: martinl
Date: 2017-12-26 11:47:44 -0800 (Tue, 26 Dec 2017)
New Revision: 71976

Modified:
   grass/trunk/gui/wxpython/startup/locdownload.py
Log:
wxGUI/downloc: use internal variables for checking download process, see r71975

Modified: grass/trunk/gui/wxpython/startup/locdownload.py
===================================================================
--- grass/trunk/gui/wxpython/startup/locdownload.py	2017-12-26 19:38:11 UTC (rev 71975)
+++ grass/trunk/gui/wxpython/startup/locdownload.py	2017-12-26 19:47:44 UTC (rev 71976)
@@ -483,7 +483,7 @@
         return self.panel.GetLocation()
 
     def OnClose(self, event):
-        if self.panel.thread.GetId() > 1:
+        if self.panel._download_in_progress:
             # running thread
             dlg = wx.MessageDialog(parent=self,
                                    message=_("Do you want to cancel location download?"),



More information about the grass-commit mailing list