Skip to content

Commit

Permalink
fix runtime warning
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11399 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 16, 2009
1 parent f10d1f9 commit 5162df6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/legend/qgslegend.cpp
Expand Up @@ -40,7 +40,6 @@
#include "qgsattributetabledialog.h"

#include <cfloat>
#include <iostream>

#include <QFont>
#include <QDomDocument>
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 5162df6

Please sign in to comment.