瀏覽代碼

wxGUI/downloc: use internal variables for checking download process, see https://trac.osgeo.org/grass/changeset/71975

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71976 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 7 年之前
父節點
當前提交
39f5e3fff8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/startup/locdownload.py

+ 1 - 1
gui/wxpython/startup/locdownload.py

@@ -483,7 +483,7 @@ class LocationDownloadDialog(wx.Dialog):
         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?"),