[GRASS-SVN] r73391 - grass/branches/releasebranch_7_6/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 24 13:32:35 PDT 2018


Author: martinl
Date: 2018-09-24 13:32:35 -0700 (Mon, 24 Sep 2018)
New Revision: 73391

Modified:
   grass/branches/releasebranch_7_6/gui/wxpython/lmgr/frame.py
Log:
attribute table manager fails to start from new mapset, see #3658, merge r73390 from trunk

Modified: grass/branches/releasebranch_7_6/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/releasebranch_7_6/gui/wxpython/lmgr/frame.py	2018-09-24 20:23:21 UTC (rev 73390)
+++ grass/branches/releasebranch_7_6/gui/wxpython/lmgr/frame.py	2018-09-24 20:32:35 UTC (rev 73391)
@@ -1082,6 +1082,10 @@
                              parent=self,
                              flags='c',
                              mapset=mapset)
+            # ensure that DB connection is defined
+            ret += RunCommand('db.connect',
+                              parent=self,
+                              flags='c')
             if ret == 0:
                 GMessage(parent=self,
                          message=_("Current mapset is <%s>.") % mapset)



More information about the grass-commit mailing list