Skip to content
Permalink
Browse files

[Save As] Set fields export options visible only when compatible

with the destination format, instead of simply disabling it.
  • Loading branch information
DelazJ committed Nov 20, 2017
1 parent af6b4cc commit 89914821dfe59c60b12ced2e8c6f9aedc3d8f588
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 8991482

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