CardDatabase gains a new signal void cardDatabaseLoadingFinished(), which (#5156)
Some checks failed
Build Desktop / Configure (push) Has been cancelled
Build Desktop / ${{matrix.distro}} (Debian11, DEB) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} (Debian12, DEB) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} (Fedora39, RPM) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} (Fedora40, RPM) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} (UbuntuBionic, DEB) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} (UbuntuFocal, DEB, skip) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} (UbuntuJammy, DEB, skip) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} (UbuntuNoble, DEB) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} (yes, ArchLinux, skip) (push) Has been cancelled
Build Desktop / macOS${{matrix.target}} (1, macos-12, 12_Monterey_and_13_Ventura, Release, 14.0.1) (push) Has been cancelled
Build Desktop / macOS${{matrix.target}} (1, macos-14, 14_Sonoma, Release, 15.4) (push) Has been cancelled
Build Desktop / macOS${{matrix.target}} (macos-14, 14_Sonoma_Debug, Debug, 15.4) (push) Has been cancelled
Build Desktop / Windows ${{matrix.target}} (msvc2019_64, 5.15.*, 7) (push) Has been cancelled
Build Desktop / Windows ${{matrix.target}} (msvc2019_64, qtimageformats qtmultimedia qtwebsockets, 6.5.*, 10) (push) Has been cancelled

it will emit in loadCardDatabases(), mirroring the else branch where cardDatabaseLoadingFailed() is emitted.

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2024-11-03 23:45:19 +01:00 committed by GitHub
parent 230a2c5c62
commit 0c4e8ca290
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -567,6 +567,7 @@ LoadStatus CardDatabase::loadCardDatabases()
if (loadStatus == Ok) {
checkUnknownSets(); // update deck editors, etc
qDebug() << "CardDatabase::loadCardDatabases success";
emit cardDatabaseLoadingFinished();
} else {
qDebug() << "CardDatabase::loadCardDatabases failed";
emit cardDatabaseLoadingFailed(); // bring up the settings dialog

View File

@ -441,6 +441,7 @@ public slots:
protected slots:
LoadStatus loadCardDatabase(const QString &path);
signals:
void cardDatabaseLoadingFinished();
void cardDatabaseLoadingFailed();
void cardDatabaseNewSetsFound(int numUnknownSets, QStringList unknownSetsNames);
void cardDatabaseAllNewSetsEnabled();