Skip to content

Commit

Permalink
Merge pull request #6184 from nextcloud/bugfix/messagebox-crash
Browse files Browse the repository at this point in the history
Fix crash when clicking on import legacy account dialog 'Skip' button.
  • Loading branch information
Camila authored Nov 7, 2023
2 parents f3dff83 + 44e8e4b commit 78b5928
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 78b5928

Please sign in to comment.