Skip to content

Commit 8991482

Browse files
authoredNov 20, 2017
[Save As] Set fields export options visible only when compatible
with the destination format, instead of simply disabling it.
1 parent af6b4cc commit 8991482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/ogr/qgsvectorlayersaveasdialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,12 @@ void QgsVectorLayerSaveAsDialog::mFormatComboBox_currentIndexChanged( int idx )
360360
const QString sFormat( format() );
361361
if ( sFormat == QLatin1String( "DXF" ) || sFormat == QLatin1String( "DGN" ) )
362362
{
363-
mAttributesSelection->setEnabled( false );
363+
mAttributesSelection->setVisible( false );
364364
selectAllFields = false;
365365
}
366366
else
367367
{
368-
mAttributesSelection->setEnabled( true );
368+
mAttributesSelection->setVisible( true );
369369
fieldsAsDisplayedValues = ( sFormat == QLatin1String( "CSV" ) || sFormat == QLatin1String( "XLS" ) || sFormat == QLatin1String( "XLSX" ) || sFormat == QLatin1String( "ODS" ) );
370370
}
371371

0 commit comments

Comments
 (0)
Please sign in to comment.