From 44e8e4b2e96b374b6c541cb29e601fbc862d74d1 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 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;