[GRASS-SVN] r67605 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 18 19:08:02 PST 2016


Author: annakrat
Date: 2016-01-18 19:08:02 -0800 (Mon, 18 Jan 2016)
New Revision: 67605

Modified:
   grass/trunk/gui/wxpython/dbmgr/base.py
Log:
wxGUI/dbmgr: fix removing layer together with table

Modified: grass/trunk/gui/wxpython/dbmgr/base.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/base.py	2016-01-19 02:50:20 UTC (rev 67604)
+++ grass/trunk/gui/wxpython/dbmgr/base.py	2016-01-19 03:08:02 UTC (rev 67605)
@@ -3324,11 +3324,12 @@
             sql      = 'DROP TABLE %s' % (table)
 
             RunCommand('db.execute',
-                       parent = self,
-                       stdin = sql,
-                       quiet = True,
-                       driver = driver,
-                       database = database)
+                       input='-',
+                       parent=self,
+                       stdin=sql,
+                       quiet=True,
+                       driver=driver,
+                       database=database)
             
             # update list of tables
             tableList = self.addLayerWidgets['table'][1]



More information about the grass-commit mailing list