patch_for_bug_1791.txt
1 |
Index: src/app/legend/qgslegend.cpp |
---|---|
2 |
=================================================================== |
3 |
--- src/app/legend/qgslegend.cpp (revision: 11107) |
4 |
+++ src/app/legend/qgslegend.cpp (copia de trabajo) |
5 |
@@ -240,6 +240,11 @@ |
6 |
QgsLegendItem* origin = dynamic_cast<QgsLegendItem*>( mItemBeingMoved ); |
7 |
QgsLegendItem* dest = dynamic_cast<QgsLegendItem*>( item ); |
8 |
|
9 |
+ if ( !item ) |
10 |
+ { |
11 |
+ setCursor( QCursor( Qt::ForbiddenCursor ) ); |
12 |
+ } |
13 |
+ |
14 |
if ( item && ( item != mItemBeingMoved ) ) |
15 |
{ |
16 |
QgsLegendItem::DRAG_ACTION action = dest->accept( origin ); |