mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
connect QgsGrassModuleInput to QgsMapCanvas signals addedLayer and removedLayer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3310 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
a9f578ed85
commit
39fb320205
@ -787,7 +787,12 @@ QgsGrassModuleInput::QgsGrassModuleInput ( QgsGrassModule *module, QString key,
|
||||
mLayerComboBox = new QComboBox ( this );
|
||||
|
||||
// Of course, activated(int) is not enough, but there is no signal BEFORE the cobo is opened
|
||||
connect ( mLayerComboBox, SIGNAL( activated(int) ), this, SLOT(updateQgisLayers()) );
|
||||
//connect ( mLayerComboBox, SIGNAL( activated(int) ), this, SLOT(updateQgisLayers()) );
|
||||
|
||||
// Connect to canvas
|
||||
QgsMapCanvas *canvas = mModule->qgisIface()->getMapCanvas();
|
||||
connect ( canvas, SIGNAL(addedLayer(QgsMapLayer *)), this, SLOT(updateQgisLayers()) );
|
||||
connect ( canvas, SIGNAL(removedLayer(QString)), this, SLOT(updateQgisLayers()) );
|
||||
|
||||
// Fill in QGIS layers
|
||||
updateQgisLayers();
|
||||
|
Loading…
x
Reference in New Issue
Block a user