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
This commit is contained in:
mcoletti 2004-05-12 20:39:30 +00:00
parent 54a1c7ce72
commit 109c18a4f6
3 changed files with 3 additions and 3 deletions

View File

@ -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)),

View File

@ -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.
//

View File

@ -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