avoid having more than one layer appear selected after drop

git-svn-id: http://svn.osgeo.org/qgis/trunk@292 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
stevehalasz 2003-10-03 18:09:47 +00:00
parent bdf2b59917
commit 3f40646a2b

View File

@ -45,6 +45,8 @@ void QgsLegendView::contentsDropEvent(QDropEvent* e)
QListViewItem *item = itemAt( contentsToViewport(e->pos()) );
// insert item in motion after one it was dropped on
movingItem->moveItem( item );
// avoid having more than one layer appear selected after drop
setCurrentItem(movingItem);
emit zOrderChanged(this);
}
} else {