diff options
Diffstat (limited to 'resources/qml/Root.qml')
-rw-r--r-- | resources/qml/Root.qml | 6 |
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, { |