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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 23 07:26:38 PDT 2014


Author: annakrat
Date: 2014-05-23 07:26:38 -0700 (Fri, 23 May 2014)
New Revision: 60453

Modified:
   grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
fix broken import dialog on Windows and Mac due to wrong wildcard format

Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py	2014-05-23 13:54:10 UTC (rev 60452)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py	2014-05-23 14:26:38 UTC (rev 60453)
@@ -1366,7 +1366,8 @@
         fileMask += '%s (*.gz;*.GZ)|*.gz;*.GZ|' % _('GZIP files')
         fileMask += '%s (*.tar;*.TAR)|*.tar;*.TAR|' % _('TAR files')
         fileMask += '%s (*.tar.gz;*.TAR.GZ;*.tgz;*.TGZ)|*.tar.gz;*.TAR.GZ;*.tgz;*.TGZ|' % _('TARGZ files')
-        fileMask += '%(all)s (*.*)|*.*|' % {'all': _('All files')}
+        # don't include last '|' - windows and mac throw error
+        fileMask += '%(all)s (*.*)|*.*' % {'all': _('All files')}
         # only contains formats with extensions hardcoded    
 
         self.filePanel = wx.Panel(parent=self)



More information about the grass-commit mailing list