diff --git a/src/common/APIRequest.hpp b/src/common/APIRequest.hpp index 9d8ec9b97..ebabaf8c7 100644 --- a/src/common/APIRequest.hpp +++ b/src/common/APIRequest.hpp @@ -115,6 +115,12 @@ public: return std::move(*this); }; + APIRequest caller(const QObject *caller) && + { + this->underlying_ = std::move(this->underlying_).caller(caller); + return std::move(*this); + } + void execute() { this->underlying_.execute(); diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index 579c701d9..948436744 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -860,6 +860,7 @@ void UserInfoPopup::updateUserData() } return Success; }) + .caller(this) .execute(); };