Skip to content

Commit

Permalink
Fix crash when clicking on import legacy account dialog 'Skip' button.
Browse files Browse the repository at this point in the history
- mac OS only: With Qt::WA_DeleteOnClose the dialog was being deleted twice.

Signed-off-by: Camila <[email protected]>
  • Loading branch information
Camila authored and claucambra committed Nov 2, 2023
1 parent 6a65f77 commit 1158711
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 1158711

Please sign in to comment.