Skip to content

Commit

Permalink
Fix crash on mac OS.
Browse files Browse the repository at this point in the history
With Qt::WA_DeleteOnClose the message box was being deleted twice.

Signed-off-by: Camila <[email protected]>
  • Loading branch information
Camila committed Oct 30, 2023
1 parent 5f3f4cc commit fa668a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/gui/accountmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa668a0

Please sign in to comment.