Skip to content

Commit

Permalink
Bugfix for format list and improvement for output file validation in …
Browse files Browse the repository at this point in the history
…raster terrain dialog

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14429 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Oct 23, 2010
1 parent 97f738c commit ad7a771
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -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 ) ) );

Expand Down Expand Up @@ -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 );
}
Expand Down

0 comments on commit ad7a771

Please sign in to comment.