[GRASS-SVN] r49458 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 1 06:59:21 EST 2011


Author: martinl
Date: 2011-12-01 03:59:21 -0800 (Thu, 01 Dec 2011)
New Revision: 49458

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
Log:
wxGUI/dbm: select first tab if not defined

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py	2011-12-01 11:54:47 UTC (rev 49457)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py	2011-12-01 11:59:21 UTC (rev 49458)
@@ -641,8 +641,10 @@
         self._createManageLayerPage()
 
         if selection:
-            wx.CallAfter(self.notebook.SetSelectionByName, selection) # select browse tab
-
+            wx.CallAfter(self.notebook.SetSelectionByName, selection)
+        else:
+            wx.CallAfter(self.notebook.SetSelection, 0) # select browse tab
+        
         # buttons
         self.btnQuit   = wx.Button(parent=self.panel, id=wx.ID_EXIT)
         self.btnQuit.SetToolTipString(_("Close Attribute Table Manager"))



More information about the grass-commit mailing list