[GRASS-SVN] r52730 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 19 06:48:04 PDT 2012


Author: annakrat
Date: 2012-08-19 06:48:04 -0700 (Sun, 19 Aug 2012)
New Revision: 52730

Modified:
   grass/trunk/gui/wxpython/dbmgr/base.py
Log:
wxGUI/dbmgr: continue to fix #1633

Modified: grass/trunk/gui/wxpython/dbmgr/base.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/base.py	2012-08-19 13:23:25 UTC (rev 52729)
+++ grass/trunk/gui/wxpython/dbmgr/base.py	2012-08-19 13:48:04 UTC (rev 52730)
@@ -109,7 +109,7 @@
         # sort item by category (id)
         if keyColumn > -1:
             self.SortListItems(col = keyColumn, ascending = True) 
-        else:
+        elif keyColumn:
             self.SortListItems(col = 0, ascending = True) 
         
         # events
@@ -246,6 +246,7 @@
                                    "Try to change field separator in GUI Settings, "
                                    "Attributes tab, Data browser section.") % \
                                {'table' : tableName })
+                self.columns = {} # because of IsEmpty method
                 return
 
             self.AddDataRow(i, record, columns, keyId)
@@ -975,7 +976,7 @@
         win = VirtualAttributeList(panel, self.log,
                                    self.dbMgrData, layer, self.pages)
         if win.IsEmpty():
-            del panel
+            panel.Destroy()
             return False
 
         self.layers.append(layer)



More information about the grass-commit mailing list