diff --git a/retroshare-qml-app/src/ContactDetails.qml b/retroshare-qml-app/src/ContactDetails.qml index 5f384eb2e..bd90708ff 100644 --- a/retroshare-qml-app/src/ContactDetails.qml +++ b/retroshare-qml-app/src/ContactDetails.qml @@ -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 { diff --git a/retroshare-qml-app/src/components/AvatarOrColorHash.qml b/retroshare-qml-app/src/components/AvatarOrColorHash.qml index 35eb30efd..77c7e90ef 100644 --- a/retroshare-qml-app/src/components/AvatarOrColorHash.qml +++ b/retroshare-qml-app/src/components/AvatarOrColorHash.qml @@ -97,9 +97,13 @@ Item { console.log("showDetails() ", gxs_id) - stackView.push( - "qrc:/ContactDetails.qml", - {md: ChatCache.contactsCache.getContactFromGxsId(gxs_id)}) + if (stackView.currentItem.objectName != "contactDetails") + { + stackView.push( + "qrc:/ContactDetails.qml", + {md: ChatCache.contactsCache.getContactFromGxsId(gxs_id)}) + + } } Component.onCompleted: startComponent ()