mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07: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:
parent
2efcb48b7e
commit
ae123587d7
2 changed files with 51 additions and 55 deletions
|
|
@ -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."));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue