mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-23 07:28:24 -08:00
save file before opening message box
This commit is contained in:
@@ -186,9 +186,9 @@ void OracleImporter::httpRequestFinished(int requestId, bool error)
|
||||
progressDialog->setValue(++setIndex);
|
||||
|
||||
if (setIndex == setsToDownload.size()) {
|
||||
QMessageBox::information(0, tr("Import finished"), tr("Total: %1 cards imported").arg(cardHash.size()));
|
||||
setIndex = -1;
|
||||
saveToFile(dataDir + "/cards.xml");
|
||||
QMessageBox::information(0, tr("Import finished"), tr("Total: %1 cards imported").arg(cardHash.size()));
|
||||
qApp->quit();
|
||||
} else
|
||||
downloadNextFile();
|
||||
|
||||
Reference in New Issue
Block a user