summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--launcher/components/App.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/components/App.qml b/launcher/components/App.qml
index 4bea8a0..5061070 100644
--- a/launcher/components/App.qml
+++ b/launcher/components/App.qml
@@ -107,7 +107,7 @@ IComponent {
const item = listView.itemAtIndex(selectedIndex);
if (item)
state.selected = item;
- else {
+ else if (listView.count > 0) {
// wait until it's created
listView.forceLayout(); // forces creation if in view
Qt.callLater(syncSelectionState);