Skip to content

Commit

Permalink
fixed #2711: avoid jumping items in legend
Browse files Browse the repository at this point in the history
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 0d4c08a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/legend/qgslegend.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit 0d4c08a

Please sign in to comment.