[GRASS-SVN] r51423 - grass/trunk/gui/wxpython/gui_core

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


Author: martinl
Date: 2012-04-13 11:21:13 -0700 (Fri, 13 Apr 2012)
New Revision: 51423

Modified:
   grass/trunk/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: import/link - report a message if no layers selected 


Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py	2012-04-13 18:19:11 UTC (rev 51422)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py	2012-04-13 18:21:13 UTC (rev 51423)
@@ -1759,6 +1759,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