Skip to content

Commit 93c849d

Browse files
author
mhugent
committed
Applied patch from gcarillo to fix ticket #1791. Thanks!
git-svn-id: http://svn.osgeo.org/qgis/trunk@11202 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 247dd62 commit 93c849d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/legend/qgslegend.cpp

+5
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)