[GRASS-CVS] [addons] r1241 - trunk/grassaddons/gui/gui_modules
grass-commit-addons at grass.itc.it
grass-commit-addons at grass.itc.it
Wed Dec 5 04:39:57 EST 2007
Author: landa
Date: 2007-12-05 10:39:57 +0100 (Wed, 05 Dec 2007)
New Revision: 1241
Modified:
trunk/grassaddons/gui/gui_modules/dbm.py
Log:
'Extract selected' enabled only when at least one item is selected
Modified: trunk/grassaddons/gui/gui_modules/dbm.py
===================================================================
--- trunk/grassaddons/gui/gui_modules/dbm.py 2007-12-05 05:16:17 UTC (rev 1240)
+++ trunk/grassaddons/gui/gui_modules/dbm.py 2007-12-05 09:39:57 UTC (rev 1241)
@@ -925,16 +925,17 @@
menu.Append(self.popupDataID2, _("Insert new record"))
menu.AppendSeparator()
menu.Append(self.popupDataID3, _("Delete selected record(s)"))
- if list.GetFirstSelected() == -1:
- menu.Enable(self.popupDataID3, False)
menu.Append(self.popupDataID4, _("Delete all records"))
menu.AppendSeparator()
menu.Append(self.popupDataID5, _("Reload"))
menu.AppendSeparator()
menu.Append(self.popupDataID6, _("Display selected"))
- menu.Append(self.popupDataID7, _("Extract selected"))
if not self.map:
menu.Enable(self.popupDataID6, False)
+ menu.Append(self.popupDataID7, _("Extract selected"))
+ if list.GetFirstSelected() == -1:
+ menu.Enable(self.popupDataID3, False)
+ menu.Enable(self.popupDataID7, False)
self.PopupMenu(menu)
menu.Destroy()
More information about the grass-commit
mailing list