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
This commit is contained in:
Gioacchino Mazzurco 2017-10-08 11:44:51 +02:00
parent 3530353678
commit 9ba7b5cf47

View File

@ -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
}