Index: src/app/legend/qgslegend.cpp =================================================================== --- src/app/legend/qgslegend.cpp (revision 13576) +++ src/app/legend/qgslegend.cpp (working copy) @@ -377,6 +377,15 @@ checkLayerOrderUpdate(); return; } + + // make sure you are able to drag the item + // to fix #2711, #2528, #2018 + QgsLegendItem::DRAG_ACTION action = dest->accept( origin ); + if ( action == QgsLegendItem::NO_ACTION && mDropAction != NO_ACTION ) + { + QgsDebugMsg( "Drag NO_ACTION" ); + return; + } { // Do the actual move here.