select a right-clicked item in asset browser

This commit is contained in:
Stephen Birarda 2016-03-11 14:13:42 -08:00
parent 31f0e4a919
commit 188712a55b

View file

@ -379,6 +379,9 @@ Window {
acceptedButtons: Qt.RightButton
onClicked: {
var index = treeView.indexAt(mouse.x, mouse.y);
treeView.selection.setCurrentIndex(index, 0x0002);
contextMenu.currentIndex = index;
contextMenu.popup();
}