Commit f17c9171 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

krunner: Do not loose focus when trying to access empty history list

This issue was mentioned in CCBUG: 433173
parent ffa24a94
......@@ -132,7 +132,9 @@ ColumnLayout {
function move_up() {
if (length === 0) {
root.showHistory = true;
listView.forceActiveFocus();
if (listView.count > 0) {
listView.forceActiveFocus();
}
} else if (results.count > 0) {
results.forceActiveFocus();
results.decrementCurrentIndex();
......@@ -142,7 +144,9 @@ ColumnLayout {
function move_down() {
if (length === 0) {
root.showHistory = true;
listView.forceActiveFocus();
if (listView.count > 0) {
listView.forceActiveFocus();
}
} else if (results.count > 0) {
results.forceActiveFocus();
results.incrementCurrentIndex();
......
Supports Markdown
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