Skip to content
Permalink
Browse files

Applied patch from gcarillo to fix ticket #1791. Thanks!

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11202 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jul 29, 2009
1 parent 7e6cde1 commit b2d5840c068815bea4260e4fdd698e762ff4a8a9
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/legend/qgslegend.cpp
@@ -240,6 +240,11 @@ void QgsLegend::mouseMoveEvent( QMouseEvent * e )
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 );

0 comments on commit b2d5840

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