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/MessageView.qml | |
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/MessageView.qml')
-rw-r--r-- | resources/qml/MessageView.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index e801f2d1..542304d8 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -226,6 +226,7 @@ Item { forwardMess.setMessageEventId(chat.model.reply); forwardMess.open(); chat.model.reply = null; + timelineRoot.destroyOnClose(forwardMess); } } } @@ -653,6 +654,7 @@ Item { var forwardMess = forwardCompleterComponent.createObject(timelineRoot); forwardMess.setMessageEventId(messageContextMenu.eventId); forwardMess.open(); + timelineRoot.destroyOnClose(forwardMess); } } |