浏览代码

g.gui.tplot: replace copied code with existing function

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

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

@@ -133,9 +133,7 @@ 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.__del__()
         self.Destroy()
         self.Destroy()
 
 
     def _layout(self):
     def _layout(self):