From f3b7919a534c8758c26836a81cf20ce49d045daa Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 7 Jan 2023 01:09:36 +0100 Subject: Fix crash in migrations during secrets deletion We need to block the migrations returning until the migrations are done. Fixes #1258 --- src/ui/UserProfile.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ui/UserProfile.cpp') diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp index cbeb1f4f..ca222d8b 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp @@ -38,7 +38,11 @@ UserProfile::UserProfile(const QString &roomid, this, &UserProfile::setGlobalUsername, Qt::QueuedConnection); - connect(this, &UserProfile::verificationStatiChanged, &UserProfile::updateVerificationStatus); + connect(this, + &UserProfile::verificationStatiChanged, + this, + &UserProfile::updateVerificationStatus, + Qt::QueuedConnection); if (isGlobalUserProfile()) { getGlobalProfileData(); -- cgit 1.5.1