Skip to content
Permalink
Browse files

Fix to handling of geometry type selectors

  • Loading branch information
ccrook committed Apr 15, 2013
1 parent 863a3f7 commit 5f016e2f95a7f87a72cabd1da969b2ff41289c04
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp
@@ -356,9 +356,9 @@ void QgsDelimitedTextSourceSelect::updateFieldLists()
disconnect( cmbXField, SIGNAL( currentIndexChanged( int ) ), this, SLOT( enableAccept() ) );
disconnect( cmbYField, SIGNAL( currentIndexChanged( int ) ), this, SLOT( enableAccept() ) );
disconnect( cmbWktField, SIGNAL( currentIndexChanged( int ) ), this, SLOT( enableAccept() ) );
disconnect( geomTypeXY, SIGNAL( toggled( bool ) ), cmbXField, SLOT( setEnabled( bool ) ) );
disconnect( geomTypeXY, SIGNAL( toggled( bool ) ), cmbYField, SLOT( setEnabled( bool ) ) );
disconnect( geomTypeXY, SIGNAL( toggled( bool ) ), cmbWktField, SLOT( setDisabled( bool ) ) );
disconnect( geomTypeXY, SIGNAL( toggled( bool ) ), this, SLOT( enableAccept() ) );
disconnect( geomTypeWKT, SIGNAL( toggled( bool ) ), this, SLOT( enableAccept() ) );
disconnect( geomTypeNone, SIGNAL( toggled( bool ) ), this, SLOT( enableAccept() ) );

QString columnX = cmbXField->currentText();
QString columnY = cmbYField->currentText();
@@ -536,13 +536,13 @@ void QgsDelimitedTextSourceSelect::updateFieldLists()
if ( haveFields )
{
frmGeometry->setEnabled( true );

connect( cmbXField, SIGNAL( currentIndexChanged( int ) ), this, SLOT( enableAccept() ) );
connect( cmbYField, SIGNAL( currentIndexChanged( int ) ), this, SLOT( enableAccept() ) );
connect( cmbWktField, SIGNAL( currentIndexChanged( int ) ), this, SLOT( enableAccept() ) );
connect( geomTypeXY, SIGNAL( toggled( bool ) ), cmbXField, SLOT( setEnabled( bool ) ) );
connect( geomTypeXY, SIGNAL( toggled( bool ) ), cmbYField, SLOT( setEnabled( bool ) ) );
connect( geomTypeXY, SIGNAL( toggled( bool ) ), cmbWktField, SLOT( setDisabled( bool ) ) );
connect( geomTypeXY, SIGNAL( toggled( bool ) ), this, SLOT( enableAccept() ) );
connect( geomTypeWKT, SIGNAL( toggled( bool ) ), this, SLOT( enableAccept() ) );
connect( geomTypeNone, SIGNAL( toggled( bool ) ), this, SLOT( enableAccept() ) );

}

}

0 comments on commit 5f016e2

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