Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
field combobox: properly emit signal when setField on the first displ…
…ayed field
  • Loading branch information
3nids committed May 12, 2014
1 parent 09a9a61 commit 5751cad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsfieldcombobox.cpp
Expand Up @@ -24,7 +24,7 @@ QgsFieldComboBox::QgsFieldComboBox( QWidget *parent ) :
mFieldProxyModel = new QgsFieldProxyModel( this );
setModel( mFieldProxyModel );

connect( this, SIGNAL( currentIndexChanged( int ) ), this, SLOT( indexChanged( int ) ) );
connect( this, SIGNAL( activated( int ) ), this, SLOT( indexChanged( int ) ) );
}

void QgsFieldComboBox::setFilters( QgsFieldProxyModel::Filters filters )
Expand Down Expand Up @@ -60,6 +60,7 @@ void QgsFieldComboBox::setField( QString fieldName )
if ( proxyIdx.isValid() )
{
setCurrentIndex( idx.row() );
emit fieldChanged( currentField() );
return;
}
}
Expand Down

0 comments on commit 5751cad

Please sign in to comment.