[QGIS Commit] r11399 - trunk/qgis/src/app/legend
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun Aug 16 17:14:17 EDT 2009
Author: jef
Date: 2009-08-16 17:14:16 -0400 (Sun, 16 Aug 2009)
New Revision: 11399
Modified:
trunk/qgis/src/app/legend/qgslegend.cpp
Log:
fix runtime warning
Modified: trunk/qgis/src/app/legend/qgslegend.cpp
===================================================================
--- trunk/qgis/src/app/legend/qgslegend.cpp 2009-08-16 19:31:28 UTC (rev 11398)
+++ trunk/qgis/src/app/legend/qgslegend.cpp 2009-08-16 21:14:16 UTC (rev 11399)
@@ -40,7 +40,6 @@
#include "qgsattributetabledialog.h"
#include <cfloat>
-#include <iostream>
#include <QFont>
#include <QDomDocument>
@@ -617,8 +616,11 @@
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()
More information about the QGIS-commit
mailing list