mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
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:
parent
bdf2b59917
commit
3f40646a2b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user