From ff4334d59e950e9f51a924e06457f21fa1bbaf2a Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 21 Feb 2022 05:01:01 +0100 Subject: Don't leak dialogs It seems that you need to manually destroy created objects... Great... fixes #898 --- resources/qml/dialogs/ImagePackSettingsDialog.qml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'resources/qml/dialogs') 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); } } -- cgit 1.5.1