summary refs log tree commit diff
path: root/resources/qml/MessageView.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-02-21 05:01:01 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-02-21 05:01:01 +0100
commitff4334d59e950e9f51a924e06457f21fa1bbaf2a (patch)
tree5db6dd4cbf91af2bcaf434a9f1765991602ddf72 /resources/qml/MessageView.qml
parentFix forward completer (diff)
downloadnheko-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.qml2
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);
             }
         }