[QGIS Commit] r14429 -
trunk/qgis/src/plugins/raster_terrain_analysis
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Oct 23 05:41:46 EDT 2010
Author: mhugent
Date: 2010-10-23 02:41:46 -0700 (Sat, 23 Oct 2010)
New Revision: 14429
Modified:
trunk/qgis/src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialog.cpp
Log:
Bugfix for format list and improvement for output file validation in raster terrain dialog
Modified: trunk/qgis/src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialog.cpp
===================================================================
--- trunk/qgis/src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialog.cpp 2010-10-22 20:00:42 UTC (rev 14428)
+++ trunk/qgis/src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialog.cpp 2010-10-23 09:41:46 UTC (rev 14429)
@@ -57,7 +57,7 @@
if ( driver != NULL )
{
char** driverMetadata = GDALGetMetadata( driver, NULL );
- if ( CSLFetchBoolean( driverMetadata, GDAL_DCAP_CREATE, true ) )
+ if ( CSLFetchBoolean( driverMetadata, GDAL_DCAP_CREATE, false ) )
{
mOutputFormatComboBox->addItem( GDALGetDriverLongName( driver ), QVariant( GDALGetDriverShortName( driver ) ) );
@@ -191,8 +191,8 @@
return;
}
- QFileInfo fileInfo( text );
- if ( mInputLayerComboBox->count() > 0 && fileInfo.dir().exists() )
+ QString outputPath = QFileInfo( text ).absolutePath();
+ if ( mInputLayerComboBox->count() > 0 && QFileInfo( outputPath ).isWritable() )
{
okButton->setEnabled( true );
}
More information about the QGIS-commit
mailing list