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

@@ -98,7 +98,7 @@ ColumnLayout {
id: messageMouseArea
onSecondaryClicked: {
var contextMenu = messageDelegateContextMenu.createObject(ApplicationWindow.overlay)
var contextMenu = messageDelegateContextMenu.createObject(root)
contextMenu.viewSource.connect(function() {
messageSourceDialog.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
})