Skip to content
Permalink
Browse files
fixed #2711: avoid jumping items in legend
git-svn-id: http://svn.osgeo.org/qgis/trunk@13640 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Jun 4, 2010
1 parent 9e19090 commit 0d4c08ac3029b89a0098d91692cc1a8121160cb7
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/app/legend/qgslegend.cpp
@@ -377,6 +377,14 @@ void QgsLegend::mouseReleaseEvent( QMouseEvent * e )
checkLayerOrderUpdate();
return;
}

// make sure you are able to drag the item
QgsLegendItem::DRAG_ACTION action = dest->accept( origin );
if ( action == QgsLegendItem::NO_ACTION )
{
QgsDebugMsg( "Drag NO_ACTION" );
return;
}

{
// Do the actual move here.

0 comments on commit 0d4c08a

Please sign in to comment.