diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-02-21 05:01:01 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-02-21 05:01:01 +0100 |
commit | ff4334d59e950e9f51a924e06457f21fa1bbaf2a (patch) | |
tree | 5db6dd4cbf91af2bcaf434a9f1765991602ddf72 /resources/qml/dialogs | |
parent | Fix forward completer (diff) | |
download | nheko-ff4334d59e950e9f51a924e06457f21fa1bbaf2a.tar.xz |
Don't leak dialogs
It seems that you need to manually destroy created objects... Great... fixes #898
Diffstat (limited to 'resources/qml/dialogs')
-rw-r--r-- | resources/qml/dialogs/ImagePackSettingsDialog.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/qml/dialogs/ImagePackSettingsDialog.qml b/resources/qml/dialogs/ImagePackSettingsDialog.qml index 18c32c41..2ce19b80 100644 --- a/resources/qml/dialogs/ImagePackSettingsDialog.qml +++ b/resources/qml/dialogs/ImagePackSettingsDialog.qml @@ -71,6 +71,7 @@ ApplicationWindow { "imagePack": packlist.newPack(false) }); dialog.show(); + timelineRoot.destroyOnClose(dialog); } width: packlistC.width visible: !packlist.containsAccountPack @@ -84,6 +85,7 @@ ApplicationWindow { "imagePack": packlist.newPack(true) }); dialog.show(); + timelineRoot.destroyOnClose(dialog); } width: packlistC.width visible: room.permissions.canChange(MtxEvent.ImagePackInRoom) @@ -199,6 +201,7 @@ ApplicationWindow { "imagePack": currentPack }); dialog.show(); + timelineRoot.destroyOnClose(dialog); } } |