diff --git a/ui/app/AppLayouts/Profile/Sections/Contacts/ContactList.qml b/ui/app/AppLayouts/Profile/Sections/Contacts/ContactList.qml index dae96760d7..8cf6bdb0af 100644 --- a/ui/app/AppLayouts/Profile/Sections/Contacts/ContactList.qml +++ b/ui/app/AppLayouts/Profile/Sections/Contacts/ContactList.qml @@ -15,6 +15,11 @@ ListView { property string lowerCaseSearchString: searchString.toLowerCase() property string contactToRemove: "" + property Component profilePopupComponent: ProfilePopup { + id: profilePopup + onClosed: destroy() + } + width: parent.width model: contacts @@ -26,7 +31,10 @@ ListView { identicon: model.thumbnailImage || model.identicon isContact: model.isContact isBlocked: model.isBlocked - profileClick: profilePopup.openPopup.bind(profilePopup) + profileClick: function (showFooter, userName, fromAuthor, identicon, textParam, nickName) { + var popup = profilePopupComponent.createObject(contactList); + popup.openPopup(showFooter, userName, fromAuthor, identicon, textParam, nickName); + } visible: searchString === "" || model.name.toLowerCase().includes(lowerCaseSearchString) || model.address.toLowerCase().includes(lowerCaseSearchString) @@ -41,10 +49,6 @@ ListView { } } - ProfilePopup { - id: profilePopup - } - // TODO: Make BlockContactConfirmationDialog a dynamic component on a future refactor BlockContactConfirmationDialog { id: blockContactConfirmationDialog