Cleanup connection handling in QML
Consistently pass connection objects to files that need them instead of randomly using Controller.activeConnection in some of them
This commit is contained in:
committed by
Carl Schwan
parent
6439fa48f9
commit
5e80715898
@@ -243,6 +243,8 @@ ColumnLayout {
|
||||
*/
|
||||
readonly property alias hovered: bubble.hovered
|
||||
|
||||
required property NeoChatConnection connection
|
||||
|
||||
/**
|
||||
* @brief Open the context menu for the message.
|
||||
*/
|
||||
@@ -612,6 +614,7 @@ ColumnLayout {
|
||||
file: file,
|
||||
progressInfo: root.progressInfo,
|
||||
plainText: root.plainText,
|
||||
connection: root.connection,
|
||||
});
|
||||
contextMenu.open();
|
||||
}
|
||||
@@ -626,6 +629,7 @@ ColumnLayout {
|
||||
eventType: root.delegateType,
|
||||
plainText: root.plainText,
|
||||
htmlText: root.display,
|
||||
connection: root.connection,
|
||||
});
|
||||
contextMenu.open();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user