Commit ad0c73b3 authored by Sebastian Kügler's avatar Sebastian Kügler
Browse files

Reset currentItem in ListViews correctly

Without this patch, all items (apps, actions, etc.) would keep selection
state until someone else "steals" it. The problem is that in many cases,
it's not the mouse position that matters which item gets activated, but
the currently selected item in a given listview.

Adding an onExited handler to the onEntered handler fixes this, and thus
the bug that in some cases, the wrong app gets started.

parent 6edb5229
......@@ -88,6 +88,10 @@ Item {
listItem.ListView.view.currentIndex = index;
onExited: {
listItem.ListView.view.currentIndex = -1;
onClicked: {
if (mouse.button == Qt.LeftButton) {
if (appView) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment