From 109c18a4f67d92e327effd2d9490f46d8ec0dfee Mon Sep 17 00:00:00 2001 From: mcoletti Date: Wed, 12 May 2004 20:39:30 +0000 Subject: [PATCH] Fix for bug #950499; legend now cleared for new projects. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1382 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/qgisapp.cpp | 2 +- src/qgslegend.cpp | 2 +- src/qgslegend.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qgisapp.cpp b/src/qgisapp.cpp index 9afd281a94e..af150a01509 100644 --- a/src/qgisapp.cpp +++ b/src/qgisapp.cpp @@ -283,7 +283,7 @@ QgisApp::QgisApp(QWidget * parent, const char *name, WFlags fl):QgisAppBase(pare connect(mapCanvas, SIGNAL(extentsChanged(QString )),this,SLOT(showExtents(QString ))); connect(mapCanvas, SIGNAL(scaleChanged(QString)), this, SLOT(showScale(QString))); connect(mapCanvas, SIGNAL(addedLayer(QgsMapLayer *)), mapLegend, SLOT(addLayer(QgsMapLayer *))); - connect(mapCanvas, SIGNAL(removedLayer(QString)), mapLegend, SLOT(removedLayer(QString))); + connect(mapCanvas, SIGNAL(removedLayer(QString)), mapLegend, SLOT(removeLayer(QString))); connect(mapLegend, SIGNAL(doubleClicked(QListViewItem *)), this, SLOT(layerProperties(QListViewItem *))); connect(mapLegend, SIGNAL(rightButtonPressed(QListViewItem *, const QPoint &, int)), diff --git a/src/qgslegend.cpp b/src/qgslegend.cpp index 143680c0065..0a6f6bd051c 100644 --- a/src/qgslegend.cpp +++ b/src/qgslegend.cpp @@ -235,7 +235,7 @@ void QgsLegend::addLayer( QgsMapLayer * layer ) /* slot */ -void QgsLegend::removeLayer( QString const & layer_key ) +void QgsLegend::removeLayer( QString layer_key ) { // There are three possible starting legend states when this is invoked. // diff --git a/src/qgslegend.h b/src/qgslegend.h index 501a47440ce..a683bda7dec 100644 --- a/src/qgslegend.h +++ b/src/qgslegend.h @@ -71,7 +71,7 @@ public slots: @param layer_key is unique layer identification */ - void removeLayer( QString const & layer_key ); + void removeLayer( QString layer_key ); protected: // override these to handle layer order manipulation