Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5680 from DelazJ/hidefields
[Save As] Set fields export options visible only when compatible
  • Loading branch information
nyalldawson committed Nov 24, 2017
2 parents 1fcadb7 + 8991482 commit 8b15c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/ogr/qgsvectorlayersaveasdialog.cpp
Expand Up @@ -360,12 +360,12 @@ void QgsVectorLayerSaveAsDialog::mFormatComboBox_currentIndexChanged( int idx )
const QString sFormat( format() );
if ( sFormat == QLatin1String( "DXF" ) || sFormat == QLatin1String( "DGN" ) )
{
mAttributesSelection->setEnabled( false );
mAttributesSelection->setVisible( false );
selectAllFields = false;
}
else
{
mAttributesSelection->setEnabled( true );
mAttributesSelection->setVisible( true );
fieldsAsDisplayedValues = ( sFormat == QLatin1String( "CSV" ) || sFormat == QLatin1String( "XLS" ) || sFormat == QLatin1String( "XLSX" ) || sFormat == QLatin1String( "ODS" ) );
}

Expand Down

0 comments on commit 8b15c73

Please sign in to comment.