Skip to content
Permalink
Browse files

[delimited] Don't reset geometry type from "No geometry" when

changing other settings

Fixes #17971
  • Loading branch information
nyalldawson committed Feb 9, 2018
1 parent 9da5fd3 commit f340eecc8738cebf4a4055157d87cc6e101561f0
Showing with 8 additions and 5 deletions.
  1. +8 −5 src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp
@@ -539,11 +539,14 @@ void QgsDelimitedTextSourceSelect::updateFieldLists()

bool haveFields = fieldNo > 0;

bool isXY = cmbWktField->currentIndex() < 0 ||
( geomTypeXY->isChecked() &&
( cmbXField->currentIndex() >= 0 && cmbYField->currentIndex() >= 0 ) );
geomTypeXY->setChecked( isXY );
geomTypeWKT->setChecked( ! isXY );
if ( !geomTypeNone->isChecked() )
{
bool isXY = cmbWktField->currentIndex() < 0 ||
( geomTypeXY->isChecked() &&
( cmbXField->currentIndex() >= 0 && cmbYField->currentIndex() >= 0 ) );
geomTypeXY->setChecked( isXY );
geomTypeWKT->setChecked( ! isXY );
}
swGeomType->setCurrentIndex( bgGeomType->checkedId() );

if ( haveFields )

0 comments on commit f340eec

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