Skip to content

Commit

Permalink
map layer combo: emit signal before return
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 6, 2014
1 parent ac2c742 commit 1607396
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsmaplayercombobox.cpp
Expand Up @@ -16,6 +16,7 @@
#include "qgsmaplayercombobox.h"
#include "qgsmaplayermodel.h"


QgsMapLayerComboBox::QgsMapLayerComboBox( QWidget *parent ) :
QComboBox( parent )
{
Expand All @@ -39,11 +40,11 @@ void QgsMapLayerComboBox::setLayer( QgsMapLayer *layer )
if ( proxyIdx.isValid() )
{
setCurrentIndex( proxyIdx.row() );
emit layerChanged( currentLayer() );
return;
}
}
setCurrentIndex( -1 );

emit layerChanged( currentLayer() );
}

Expand Down

0 comments on commit 1607396

Please sign in to comment.