Skip to content
Permalink
Browse files

fix runtime warning

git-svn-id: http://svn.osgeo.org/qgis/trunk@11399 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Aug 16, 2009
1 parent 7730f3a commit 2ed443d6ab1d1416ca5b76a0b3a92c9191f5b8b5
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/app/legend/qgslegend.cpp
@@ -40,7 +40,6 @@
#include "qgsattributetabledialog.h"

#include <cfloat>
#include <iostream>

#include <QFont>
#include <QDomDocument>
@@ -617,8 +616,11 @@ void QgsLegend::addLayer( QgsMapLayer * layer )
doItemsLayout();

// setup connections that will update the layer icons
connect( layer, SIGNAL( editingStarted() ), llayer, SLOT( updateIcon() ) );
connect( layer, SIGNAL( editingStopped() ), llayer, SLOT( updateIcon() ) );
if( dynamic_cast<QgsVectorLayer *>( layer ) )
{
connect( layer, SIGNAL( editingStarted() ), llayer, SLOT( updateIcon() ) );
connect( layer, SIGNAL( editingStopped() ), llayer, SLOT( updateIcon() ) );
}
}

QgsLegendLayerFile* QgsLegend::currentLayerFile()

0 comments on commit 2ed443d

Please sign in to comment.
You can’t perform that action at this time.