@@ -136,7 +136,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri
136
136
137
137
QStringList metadataTokens; // essentially the metadata string delimited by '='
138
138
139
- QString catchallFilter; // for Any file(*.*), but also for those
139
+ QStringList catchallFilter; // for Any file(*.*), but also for those
140
140
// drivers with no specific file filter
141
141
142
142
GDALDriver *jp2Driver = NULL ; // first JPEG2000 driver found
@@ -269,7 +269,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri
269
269
}
270
270
else
271
271
{
272
- catchallFilter += QString (myGdalDriver->GetDescription ()) + " " ;
272
+ catchallFilter << QString (myGdalDriver->GetDescription ());
273
273
}
274
274
}
275
275
@@ -278,7 +278,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri
278
278
} // each loaded GDAL driver
279
279
280
280
// can't forget the default case
281
- theFileFiltersString += catchallFilter + tr (" and all other files" ) + " (*)" ;
281
+ theFileFiltersString += catchallFilter. join ( " , " ) + " " + tr (" and all other files" ) + " (*)" ;
282
282
QgsDebugMsg (" Raster filter list built: " + theFileFiltersString);
283
283
} // buildSupportedRasterFileFilter_()
284
284
@@ -374,8 +374,7 @@ QgsRasterLayer::QgsRasterLayer(QString const & path, QString const & baseName)
374
374
showDebugOverlayFlag(false ),
375
375
invertHistogramFlag(false ),
376
376
stdDevsToPlotDouble(0 ),
377
- dataProvider(0 )
378
-
377
+ dataProvider(0 )
379
378
{
380
379
userDefinedColorMinMax = false ; // defaults needed to bypass stretch
381
380
userDefinedGrayMinMax = false ;
0 commit comments