Browse Source

fix broken import dialog on Windows and Mac due to wrong wildcard format

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60453 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 years ago
parent
commit
bacad2aded
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/gui_core/gselect.py

+ 2 - 1
gui/wxpython/gui_core/gselect.py

@@ -1366,7 +1366,8 @@ class GdalSelect(wx.Panel):
         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)