mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-22 23:26:14 -08:00
Fixed a bug that caused Oracle to be stuck in an infinite loop if the default path checkbox was checked but failed to write.
This commit is contained in:
@@ -433,6 +433,8 @@ bool SaveSetsPage::validatePage()
|
|||||||
QMessageBox::information(this, tr("Success"), tr("The card database has been saved successfully."));
|
QMessageBox::information(this, tr("Success"), tr("The card database has been saved successfully."));
|
||||||
} else {
|
} else {
|
||||||
QMessageBox::critical(this, tr("Error"), tr("The file could not be saved to the desired location."));
|
QMessageBox::critical(this, tr("Error"), tr("The file could not be saved to the desired location."));
|
||||||
|
if (defaultPathCheckBox->isChecked())
|
||||||
|
defaultPathCheckBox->setChecked(false);
|
||||||
}
|
}
|
||||||
} while (!ok);
|
} while (!ok);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user