Skip to content
Permalink
Browse files
fixed #2711: avoid jumping items in legend
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13640 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Jun 4, 2010
1 parent e8519a4 commit 8d2c1f84c7dc6e581d9e49be1d1c2edfc884aa18
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 8d2c1f8

Please sign in to comment.