From fa668a0c70601e439b025378ed61981a991fbd89 Mon Sep 17 00:00:00 2001 From: Camila Date: Mon, 30 Oct 2023 17:48:15 +0100 Subject: [PATCH] Fix crash on mac OS. With Qt::WA_DeleteOnClose the message box 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 91dfb33dab5ff..265f0fa6695bb 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;