[QGIS Commit] r11202 - trunk/qgis/src/app/legend
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Jul 29 09:22:36 EDT 2009
Author: mhugent
Date: 2009-07-29 09:22:36 -0400 (Wed, 29 Jul 2009)
New Revision: 11202
Modified:
trunk/qgis/src/app/legend/qgslegend.cpp
Log:
Applied patch from gcarillo to fix ticket #1791. Thanks!
Modified: trunk/qgis/src/app/legend/qgslegend.cpp
===================================================================
--- trunk/qgis/src/app/legend/qgslegend.cpp 2009-07-29 13:09:55 UTC (rev 11201)
+++ trunk/qgis/src/app/legend/qgslegend.cpp 2009-07-29 13:22:36 UTC (rev 11202)
@@ -240,6 +240,11 @@
QgsLegendItem* origin = dynamic_cast<QgsLegendItem*>( mItemBeingMoved );
QgsLegendItem* dest = dynamic_cast<QgsLegendItem*>( item );
+ if ( !item )
+ {
+ setCursor( QCursor( Qt::ForbiddenCursor ) );
+ }
+
if ( item && ( item != mItemBeingMoved ) )
{
QgsLegendItem::DRAG_ACTION action = dest->accept( origin );
More information about the QGIS-commit
mailing list