[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:
RickyRister 2025-11-12 07:58:09 -08:00 committed by GitHub
parent 2efcb48b7e
commit ae123587d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 51 additions and 55 deletions

View file

@ -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."));
}
}