Fix push contactDetails view when click avatar on it

This commit is contained in:
Angela Mazzurco 2017-07-21 17:31:19 +02:00
parent f77fe533e7
commit db0292f6e0
2 changed files with 8 additions and 3 deletions

View File

@ -28,6 +28,7 @@ Item
property var md
property bool is_contact: cntDt.md.is_contact
property bool isOwn: cntDt.md.own
property string objectName: "contactDetails"
Button
{

View File

@ -97,9 +97,13 @@ Item
{
console.log("showDetails() ", gxs_id)
if (stackView.currentItem.objectName != "contactDetails")
{
stackView.push(
"qrc:/ContactDetails.qml",
{md: ChatCache.contactsCache.getContactFromGxsId(gxs_id)})
}
}
Component.onCompleted: startComponent ()