summaryrefslogtreecommitdiffstats
path: root/resources/qml/Root.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-03-01 01:59:06 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-03-01 02:33:22 +0100
commit23efa8f8153922e559931591d5ce517430681555 (patch)
tree4318ccabde5105fd8d09c2b8c51b68c57dc467b1 /resources/qml/Root.qml
parenta307dc46cb70973a3cd3109a842b69c684f7bf75 (diff)
Fix a few small completer glitches
Diffstat (limited to 'resources/qml/Root.qml')
-rw-r--r--resources/qml/Root.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/qml/Root.qml b/resources/qml/Root.qml
index 33ffee3d..14e6770b 100644
--- a/resources/qml/Root.qml
+++ b/resources/qml/Root.qml
@@ -173,7 +173,7 @@ Pane {
onActivated: {
var quickSwitch = quickSwitcherComponent.createObject(timelineRoot);
quickSwitch.open();
- destroyOnClose(quickSwitch);
+ destroyOnClosed(quickSwitch);
}
}
@@ -225,6 +225,10 @@ Pane {
obj.closing.connect(() => obj.destroy());
}
+ function destroyOnClosed(obj) {
+ obj.closed.connect(() => obj.destroy());
+ }
+
Connections {
function onOpenProfile(profile) {
var userProfile = userProfileComponent.createObject(timelineRoot, {