浏览代码

g.gui.tplot: tgis.stop_subprocesses() has to be called otherwise return an error if the tool is launched by command line

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69247 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 9 年之前
父节点
当前提交
d0f2f04c2a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      gui/wxpython/tplot/frame.py

+ 3 - 0
gui/wxpython/tplot/frame.py

@@ -133,6 +133,9 @@ class TplotFrame(wx.Frame):
         if self._giface.GetMapDisplay():
         if self._giface.GetMapDisplay():
             self.coorval.OnClose()
             self.coorval.OnClose()
             self.cats.OnClose()
             self.cats.OnClose()
+        if self.dbif.connected is True:
+            self.dbif.close()
+        tgis.stop_subprocesses()
         self.Destroy()
         self.Destroy()
 
 
     def _layout(self):
     def _layout(self):