mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-15 14:34:04 -08:00
[Oracle] clean up OracleImporter (#6313)
* Move variable declaration closer to usage * Leave comments * inline some constants * make code easier to understand * Use structured binding to iterate over maps * move things around * static const regex * remove redundant parens * Can't use asKeyValueRange because of Qt versions
This commit is contained in:
@@ -641,7 +641,9 @@ void SaveSetsPage::initializePage()
|
||||
messageLog->show();
|
||||
connect(wizard()->importer, &OracleImporter::setIndexChanged, this, &SaveSetsPage::updateTotalProgress);
|
||||
|
||||
if (!wizard()->importer->startImport()) {
|
||||
int setsImported = wizard()->importer->startImport();
|
||||
|
||||
if (setsImported == 0) {
|
||||
QMessageBox::critical(this, tr("Error"), tr("No set has been imported."));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user