Fix a crash in message delegate menu involving nil reference.

This commit is contained in:
Black Hat
2019-10-17 02:44:56 -07:00
parent c666ffbba5
commit f4f478973f
5 changed files with 5 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ RowLayout {
onPrimaryClicked: fullScreenImage.createObject(parent, {"filename": eventId, "localPath": currentRoom.urlToDownload(eventId)}).showFullScreen()
onSecondaryClicked: {
var contextMenu = imageDelegateContextMenu.createObject(ApplicationWindow.overlay)
var contextMenu = imageDelegateContextMenu.createObject(root)
contextMenu.viewSource.connect(function() {
messageSourceDialog.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
})