Skip to content
Permalink
Browse files

map layer combo: emit signal before return

  • Loading branch information
3nids committed May 6, 2014
1 parent ac2c742 commit 16073969a9b5419b42a541af8c2f6144f18c5c21
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/qgsmaplayercombobox.cpp
@@ -16,6 +16,7 @@
#include "qgsmaplayercombobox.h"
#include "qgsmaplayermodel.h"


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

emit layerChanged( currentLayer() );
}

0 comments on commit 1607396

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