[GRASS-SVN] r73392 - grass/branches/releasebranch_7_4/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 24 13:41:08 PDT 2018


Author: martinl
Date: 2018-09-24 13:41:08 -0700 (Mon, 24 Sep 2018)
New Revision: 73392

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

Modified: grass/branches/releasebranch_7_4/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/lmgr/frame.py	2018-09-24 20:32:35 UTC (rev 73391)
+++ grass/branches/releasebranch_7_4/gui/wxpython/lmgr/frame.py	2018-09-24 20:41:08 UTC (rev 73392)
@@ -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