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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 13 14:24:26 EDT 2012


Author: martinl
Date: 2012-04-13 11:24:26 -0700 (Fri, 13 Apr 2012)
New Revision: 51426

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: import/link - report a message if no layers selected
      (merge r51425 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-04-13 18:23:29 UTC (rev 51425)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_core/dialogs.py	2012-04-13 18:24:26 UTC (rev 51426)
@@ -1703,6 +1703,11 @@
         """!Import/Link data (each layes as separate vector map)"""
         self.commandId = -1
         data = self.list.GetLayers()
+        if not data:
+            GMessage(_("No layers selected. Operation canceled."),
+                     parent = self)
+            return
+        
         dsn  = self.dsnInput.GetDsn()
         ext  = self.dsnInput.GetFormatExt()
         



More information about the grass-commit mailing list