mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04: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
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ Item
|
||||||
{
|
{
|
||||||
id: chatView
|
id: chatView
|
||||||
property string chatId
|
property string chatId
|
||||||
property var gxsInfo: ""
|
property var gxsInfo: ({})
|
||||||
property int token: 0
|
property int token: 0
|
||||||
|
|
||||||
property string objectName:"chatView"
|
property string objectName:"chatView"
|
||||||
|
@ -64,7 +64,7 @@ Item
|
||||||
function changeState ()
|
function changeState ()
|
||||||
{
|
{
|
||||||
toolBar.state = "CHATVIEW"
|
toolBar.state = "CHATVIEW"
|
||||||
gxsInfo= ChatCache.lastMessageCache.getGxsFromChatId(chatView.chatId)
|
gxsInfo = ChatCache.lastMessageCache.getGxsFromChatId(chatView.chatId)
|
||||||
toolBar.gxsSource = gxsInfo.gxs
|
toolBar.gxsSource = gxsInfo.gxs
|
||||||
toolBar.titleText = gxsInfo.name
|
toolBar.titleText = gxsInfo.name
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue