[GRASS-SVN] r67225 - grass-addons/grass7/gui/wxpython/wx.metadata/mdlib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 18 08:32:43 PST 2015


Author: martinl
Date: 2015-12-18 08:32:43 -0800 (Fri, 18 Dec 2015)
New Revision: 67225

Modified:
   grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/cswlib.py
Log:
g.gui.cswbrowser: fix wxPython 3 issue

Modified: grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/cswlib.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/cswlib.py	2015-12-18 16:24:55 UTC (rev 67224)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/mdlib/cswlib.py	2015-12-18 16:32:43 UTC (rev 67225)
@@ -1116,8 +1116,7 @@
                 self.parent.BrowserPanel.catalogCmb.Append(value)
             self.connectionLBox.Append(value)
             more, value, index = self.config.GetNextGroup(index)
-        n = self.connectionLBox.GetCount()
-        self.connectionLBox.SetString(n + 1, first)
+        self.connectionLBox.Append(first)
         if self.connectionLBox.GetCount() == 0:
             msg = 'No services/connections defined.'
             self.textMetadata.SetPage('<p><h3>%s</h3></p>' % msg)



More information about the grass-commit mailing list