mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-30 06:14:01 +03:00
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 <hello@camila.codes>
This commit is contained in:
parent
f3dff83fa2
commit
44e8e4b2e9
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue