[GRASS-SVN] r51101 - grass/branches/develbranch_6/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 18 06:21:50 EDT 2012


Author: martinl
Date: 2012-03-18 03:21:50 -0700 (Sun, 18 Mar 2012)
New Revision: 51101

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: fix loading OGR layers


Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/dialogs.py	2012-03-18 10:03:45 UTC (rev 51100)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/dialogs.py	2012-03-18 10:21:50 UTC (rev 51101)
@@ -1867,12 +1867,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