Skip to content
Permalink
Browse files

Bugfix for format list and improvement for output file validation in …

…raster terrain dialog

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14429 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Oct 23, 2010
1 parent 97f738c commit ad7a771e71056da23882976158de431e35233bc0
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/plugins/raster_terrain_analysis/qgsrasterterrainanalysisdialog.cpp
@@ -57,7 +57,7 @@ QgsRasterTerrainAnalysisDialog::QgsRasterTerrainAnalysisDialog( QgisInterface* i
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 @@ void QgsRasterTerrainAnalysisDialog::on_mOutputLayerLineEdit_textChanged( const
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 );
}

0 comments on commit ad7a771

Please sign in to comment.
You can’t perform that action at this time.