mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
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:
parent
3530353678
commit
9ba7b5cf47
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user