From 9ba7b5cf4712c4d3041799e9ec45cae48af09377 Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Sun, 8 Oct 2017 11:44:51 +0200 Subject: [PATCH] qml-app properly initialize ChatView.gxsInfo Use proper Qml empty object notation instead of string to inistalize property of type var as it is an object not a string, thus fixing the assiciated warning --- retroshare-qml-app/src/ChatView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retroshare-qml-app/src/ChatView.qml b/retroshare-qml-app/src/ChatView.qml index 505637274..07b81f9ad 100644 --- a/retroshare-qml-app/src/ChatView.qml +++ b/retroshare-qml-app/src/ChatView.qml @@ -28,7 +28,7 @@ Item { id: chatView property string chatId - property var gxsInfo: "" + property var gxsInfo: ({}) property int token: 0 property string objectName:"chatView" @@ -64,7 +64,7 @@ Item function changeState () { toolBar.state = "CHATVIEW" - gxsInfo= ChatCache.lastMessageCache.getGxsFromChatId(chatView.chatId) + gxsInfo = ChatCache.lastMessageCache.getGxsFromChatId(chatView.chatId) toolBar.gxsSource = gxsInfo.gxs toolBar.titleText = gxsInfo.name }