[GRASS-SVN] r51425 -
grass/branches/develbranch_6/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 13 14:23:29 EDT 2012
Author: martinl
Date: 2012-04-13 11:23:29 -0700 (Fri, 13 Apr 2012)
New Revision: 51425
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: import/link - report a message if no layers selected
(merge r51423 from devbr6)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/dialogs.py 2012-04-13 18:22:45 UTC (rev 51424)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/dialogs.py 2012-04-13 18:23:29 UTC (rev 51425)
@@ -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