Skip to content
Permalink
Browse files

Don't allow selection of adding z/multigeometries when saving a vector

layer with geometry type set to No Geometry
  • Loading branch information
nyalldawson committed Jun 8, 2017
1 parent dbdbd15 commit 0591225fbcfb55071017eebb4532ed7f184e7a3a
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/app/ogr/qgsvectorlayersaveasdialog.cpp
@@ -897,8 +897,18 @@ void QgsVectorLayerSaveAsDialog::on_mGeometryTypeComboBox_currentIndexChanged( i
{
int currentIndexData = mGeometryTypeComboBox->itemData( index ).toInt();

mForceMultiCheckBox->setEnabled( currentIndexData != -1 );
mIncludeZCheckBox->setEnabled( currentIndexData != -1 );
if ( currentIndexData != -1 && currentIndexData != QgsWkbTypes::NoGeometry )
{
mForceMultiCheckBox->setEnabled( true );
mIncludeZCheckBox->setEnabled( true );
}
else
{
mForceMultiCheckBox->setEnabled( false );
mForceMultiCheckBox->setChecked( false );
mIncludeZCheckBox->setEnabled( false );
mIncludeZCheckBox->setChecked( false );
}
}

void QgsVectorLayerSaveAsDialog::on_mSelectAllAttributes_clicked()

0 comments on commit 0591225

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