mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
map layer combo: emit signal before return
This commit is contained in:
parent
ac2c74264a
commit
16073969a9
@ -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() );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user