From 51c9434e9a984292d2d6c66f43da4e9d73ff5bcf Mon Sep 17 00:00:00 2001 From: Camila Date: Mon, 30 Oct 2023 17:48:15 +0100 Subject: [PATCH] Fix crash when clicking on import legacy account dialog 'Skip' button. - mac OS only: With Qt::WA_DeleteOnClose the dialog was being deleted twice. Signed-off-by: Camila --- src/gui/accountmanager.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp index ce981e11a6eab..8fc54ba775091 100644 --- a/src/gui/accountmanager.cpp +++ b/src/gui/accountmanager.cpp @@ -199,7 +199,6 @@ bool AccountManager::restoreFromLegacySettings() const auto importMessageBox = new QMessageBox(QMessageBox::Question, tr("Legacy import"), importQuestion); importMessageBox->addButton(tr("Import"), QMessageBox::AcceptRole); const auto skipButton = importMessageBox->addButton(tr("Skip"), QMessageBox::DestructiveRole); - importMessageBox->setAttribute(Qt::WA_DeleteOnClose); importMessageBox->exec(); if (importMessageBox->clickedButton() == skipButton) { return false;