[GRASS-SVN] r51102 - grass/branches/releasebranch_6_4/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 18 06:35:31 EDT 2012


Author: martinl
Date: 2012-03-18 03:35:31 -0700 (Sun, 18 Mar 2012)
New Revision: 51102

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: fix loading OGR layers
       (merge r51101 from devbr6)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_core/dialogs.py	2012-03-18 10:21:50 UTC (rev 51101)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_core/dialogs.py	2012-03-18 10:35:31 UTC (rev 51102)
@@ -1866,12 +1866,11 @@
         self.Bind(wx.EVT_COMMAND_RIGHT_CLICK, self.OnPopupMenu) #wxMSW
         self.Bind(wx.EVT_RIGHT_UP,            self.OnPopupMenu) #wxGTK
 
-    def LoadData(self, data=None):
+    def LoadData(self, data = None):
         """!Load data into list"""
+        self.DeleteAllItems()
         if data is None:
             return
-
-        self.DeleteAllItems()
         
         for id, name, grassName in data:
             index = self.InsertStringItem(sys.maxint, str(id))



More information about the grass-commit mailing list