Skip to content

Commit d2d8a55

Browse files
author
jef
committedApr 8, 2010
apply #2376
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13287 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4a1f8c2 commit d2d8a55

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/core/raster/qgsrasterlayer.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter( QString & theFileFiltersStr
305305
// same form.
306306

307307
// start with the default case
308-
theFileFiltersString = tr( "All files (*)" );
308+
theFileFiltersString = tr( "[GDAL] All files (*)" );
309309

310310
for ( int i = 0; i < GDALGetDriverCount(); ++i )
311311
{
@@ -364,7 +364,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter( QString & theFileFiltersStr
364364
if ( !( myGdalDriverExtension.isEmpty() || myGdalDriverLongName.isEmpty() ) )
365365
{
366366
// XXX add check for SDTS; in that case we want (*CATD.DDF)
367-
QString glob = "*." + myGdalDriverExtension;
367+
QString glob = "*." + myGdalDriverExtension.replace("/", " *.");
368368
// Add only the first JP2 driver found to the filter list (it's the one GDAL uses)
369369
if ( myGdalDriverDescription == "JPEG2000" ||
370370
myGdalDriverDescription.startsWith( "JP2" ) ) // JP2ECW, JP2KAK, JP2MrSID
@@ -384,7 +384,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter( QString & theFileFiltersStr
384384
glob += " *.jpeg";
385385
}
386386

387-
theFileFiltersString += ";;" + myGdalDriverLongName + " (" + glob.toLower() + " " + glob.toUpper() + ")";
387+
theFileFiltersString += ";;[GDAL] " + myGdalDriverLongName + " (" + glob.toLower() + " " + glob.toUpper() + ")";
388388

389389
break; // ... to next driver, if any.
390390
}
@@ -410,21 +410,21 @@ void QgsRasterLayer::buildSupportedRasterFileFilter( QString & theFileFiltersStr
410410
if ( myGdalDriverDescription.startsWith( "USGSDEM" ) )
411411
{
412412
QString glob = "*.dem";
413-
theFileFiltersString += ";;" + myGdalDriverLongName + " (" + glob.toLower() + " " + glob.toUpper() + ")";
413+
theFileFiltersString += ";;[GDAL] " + myGdalDriverLongName + " (" + glob.toLower() + " " + glob.toUpper() + ")";
414414
}
415415
else if ( myGdalDriverDescription.startsWith( "DTED" ) )
416416
{
417417
// DTED use "*.dt0, *.dt1, *.dt2"
418418
QString glob = "*.dt0";
419419
glob += " *.dt1";
420420
glob += " *.dt2";
421-
theFileFiltersString += ";;" + myGdalDriverLongName + " (" + glob.toLower() + " " + glob.toUpper() + ")";
421+
theFileFiltersString += ";;[GDAL] " + myGdalDriverLongName + " (" + glob.toLower() + " " + glob.toUpper() + ")";
422422
}
423423
else if ( myGdalDriverDescription.startsWith( "MrSID" ) )
424424
{
425425
// MrSID use "*.sid"
426426
QString glob = "*.sid";
427-
theFileFiltersString += ";;" + myGdalDriverLongName + " (" + glob.toLower() + " " + glob.toUpper() + ")";
427+
theFileFiltersString += ";;[GDAL] " + myGdalDriverLongName + " (" + glob.toLower() + " " + glob.toUpper() + ")";
428428
}
429429
else
430430
{

0 commit comments

Comments
 (0)
Please sign in to comment.