mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix push contactDetails view when click avatar on it
This commit is contained in:
parent
f77fe533e7
commit
db0292f6e0
@ -28,6 +28,7 @@ Item
|
|||||||
property var md
|
property var md
|
||||||
property bool is_contact: cntDt.md.is_contact
|
property bool is_contact: cntDt.md.is_contact
|
||||||
property bool isOwn: cntDt.md.own
|
property bool isOwn: cntDt.md.own
|
||||||
|
property string objectName: "contactDetails"
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
@ -97,9 +97,13 @@ Item
|
|||||||
{
|
{
|
||||||
console.log("showDetails() ", gxs_id)
|
console.log("showDetails() ", gxs_id)
|
||||||
|
|
||||||
|
if (stackView.currentItem.objectName != "contactDetails")
|
||||||
|
{
|
||||||
stackView.push(
|
stackView.push(
|
||||||
"qrc:/ContactDetails.qml",
|
"qrc:/ContactDetails.qml",
|
||||||
{md: ChatCache.contactsCache.getContactFromGxsId(gxs_id)})
|
{md: ChatCache.contactsCache.getContactFromGxsId(gxs_id)})
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: startComponent ()
|
Component.onCompleted: startComponent ()
|
||||||
|
Loading…
Reference in New Issue
Block a user