summaryrefslogtreecommitdiff
path: root/popups/launcher/components/Spell.qml
diff options
context:
space:
mode:
Diffstat (limited to 'popups/launcher/components/Spell.qml')
-rw-r--r--popups/launcher/components/Spell.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/popups/launcher/components/Spell.qml b/popups/launcher/components/Spell.qml
index b0ccd8f..c627b9e 100644
--- a/popups/launcher/components/Spell.qml
+++ b/popups/launcher/components/Spell.qml
@@ -115,7 +115,7 @@ IComponent {
syncSelectionState: function () {
Qt.callLater(() => {
- if (!loader.view || selectedIndex < 0 || selectedIndex >= loader.view.count)
+ if (!loader.view || selectedIndex < 0 || selectedIndex >= loader.view.count || !root.visible)
return;
state.selected = loader.view.itemAtIndex(selectedIndex);