save file before opening message box
This commit is contained in:
parent
224a4969bd
commit
e64313bb4d
1 changed files with 1 additions and 1 deletions
|
@ -186,9 +186,9 @@ void OracleImporter::httpRequestFinished(int requestId, bool error)
|
||||||
progressDialog->setValue(++setIndex);
|
progressDialog->setValue(++setIndex);
|
||||||
|
|
||||||
if (setIndex == setsToDownload.size()) {
|
if (setIndex == setsToDownload.size()) {
|
||||||
QMessageBox::information(0, tr("Import finished"), tr("Total: %1 cards imported").arg(cardHash.size()));
|
|
||||||
setIndex = -1;
|
setIndex = -1;
|
||||||
saveToFile(dataDir + "/cards.xml");
|
saveToFile(dataDir + "/cards.xml");
|
||||||
|
QMessageBox::information(0, tr("Import finished"), tr("Total: %1 cards imported").arg(cardHash.size()));
|
||||||
qApp->quit();
|
qApp->quit();
|
||||||
} else
|
} else
|
||||||
downloadNextFile();
|
downloadNextFile();
|
||||||
|
|
Loading…
Reference in a new issue