Skip to content

Commit

Permalink
Check fields by default when exporting to .kml
Browse files Browse the repository at this point in the history
Unlike other formats, saving into kml format didn't have the fields automatically selected; people could end with an empty attributes file
  • Loading branch information
DelazJ authored and m-kuhn committed Jan 5, 2017
1 parent 12ab928 commit 2ff3b4f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/ogr/qgsvectorlayersaveasdialog.cpp
Expand Up @@ -345,12 +345,7 @@ void QgsVectorLayerSaveAsDialog::on_mFormatComboBox_currentIndexChanged( int idx
bool fieldsAsDisplayedValues = false;

const QString sFormat( format() );
if ( sFormat == QLatin1String( "KML" ) )
{
mAttributesSelection->setEnabled( true );
selectAllFields = false;
}
else if ( sFormat == QLatin1String( "DXF" ) )
if ( sFormat == QLatin1String( "DXF" ) )
{
mAttributesSelection->setEnabled( false );
selectAllFields = false;
Expand Down

0 comments on commit 2ff3b4f

Please sign in to comment.