diff --git a/lib/qml/ResultDelegate.qml b/lib/qml/ResultDelegate.qml --- a/lib/qml/ResultDelegate.qml +++ b/lib/qml/ResultDelegate.qml @@ -81,9 +81,6 @@ acceptedButtons: Qt.LeftButton hoverEnabled: true - onEntered: { - listView.currentIndex = index - } onPressed: { __pressed = true; @@ -120,6 +117,10 @@ __pressX = -1; __pressY = -1; } + else if (listView.moved) { + listView.currentIndex = index + } + else listView.moved = true } PlasmaComponents.Label { diff --git a/lib/qml/ResultsView.qml b/lib/qml/ResultsView.qml --- a/lib/qml/ResultsView.qml +++ b/lib/qml/ResultsView.qml @@ -35,6 +35,7 @@ property alias runnerName: resultModel.runnerName property alias runnerIcon: resultModel.runnerIcon property bool reversed + property bool moved: false signal activated signal updateQueryString(string text, int cursorPosition) @@ -67,6 +68,7 @@ // and the results are presented onModelReset: { listView.currentIndex = 0 + listView.moved = false if (runAutomatically) { runCurrentIndex();