Skip to content

Commit b2d5840

Browse files
author
mhugent
committed
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
1 parent 7e6cde1 commit b2d5840

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/legend/qgslegend.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ void QgsLegend::mouseMoveEvent( QMouseEvent * e )
240240
QgsLegendItem* origin = dynamic_cast<QgsLegendItem*>( mItemBeingMoved );
241241
QgsLegendItem* dest = dynamic_cast<QgsLegendItem*>( item );
242242

243+
if ( !item )
244+
{
245+
setCursor( QCursor( Qt::ForbiddenCursor ) );
246+
}
247+
243248
if ( item && ( item != mItemBeingMoved ) )
244249
{
245250
QgsLegendItem::DRAG_ACTION action = dest->accept( origin );

0 commit comments

Comments
 (0)