Skip to content
Permalink
Browse files

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 8b15c73d2b2877c1c2c3305763aa512256dc7767
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/ogr/qgsvectorlayersaveasdialog.cpp
@@ -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" ) );
}

0 comments on commit 8b15c73

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