Skip to content

Commit 1607396

Browse files
committed
map layer combo: emit signal before return
1 parent ac2c742 commit 1607396

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/qgsmaplayercombobox.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "qgsmaplayercombobox.h"
1717
#include "qgsmaplayermodel.h"
1818

19+
1920
QgsMapLayerComboBox::QgsMapLayerComboBox( QWidget *parent ) :
2021
QComboBox( parent )
2122
{
@@ -39,11 +40,11 @@ void QgsMapLayerComboBox::setLayer( QgsMapLayer *layer )
3940
if ( proxyIdx.isValid() )
4041
{
4142
setCurrentIndex( proxyIdx.row() );
43+
emit layerChanged( currentLayer() );
4244
return;
4345
}
4446
}
4547
setCurrentIndex( -1 );
46-
4748
emit layerChanged( currentLayer() );
4849
}
4950

0 commit comments

Comments
 (0)