Skip to content

Commit

Permalink
Applied patch from gcarillo to fix ticket #1791. Thanks!
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11202 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 29, 2009
1 parent 247dd62 commit 93c849d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/legend/qgslegend.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 93c849d

Please sign in to comment.