diff --git a/YACReaderLibrary/library_creator.cpp b/YACReaderLibrary/library_creator.cpp index e8fc10cc..1cd66ce1 100644 --- a/YACReaderLibrary/library_creator.cpp +++ b/YACReaderLibrary/library_creator.cpp @@ -96,7 +96,6 @@ void LibraryCreator::updateFolder(const QString &source, const QString &target, QString error = "Unable to find database at: " + _target; QLOG_ERROR() << error; emit failedOpeningDB(error); - emit completed(); return; } @@ -164,7 +163,6 @@ void LibraryCreator::run() if (!_database.isOpen()) { QLOG_ERROR() << "Unable to create data base" << _database.lastError().databaseText() + "-" + _database.lastError().driverText(); emit failedCreatingDB(_database.lastError().databaseText() + "-" + _database.lastError().driverText()); - emit completed(); creation = false; return; } @@ -193,7 +191,6 @@ void LibraryCreator::run() QString error = "Unable to find database at: " + _target; QLOG_ERROR() << error; emit failedOpeningDB(error); - emit completed(); return; } @@ -203,7 +200,6 @@ void LibraryCreator::run() if (!_database.open()) { QLOG_ERROR() << "Unable to open database" << _database.lastError().databaseText() + "-" + _database.lastError().driverText(); emit failedOpeningDB(_database.lastError().databaseText() + "-" + _database.lastError().driverText()); - emit completed(); creation = false; return; } @@ -255,7 +251,6 @@ void LibraryCreator::run() emit updatedCurrentFolder(folderDestinationModelIndex); } - emit completed(); creation = false; } diff --git a/YACReaderLibrary/library_creator.h b/YACReaderLibrary/library_creator.h index e09ef17f..f7b8a6e6 100644 --- a/YACReaderLibrary/library_creator.h +++ b/YACReaderLibrary/library_creator.h @@ -62,7 +62,6 @@ private: void cleanup(QSqlDatabase &db, const QString &target); signals: - void completed(); void coverExtracted(QString); void folderUpdated(QString); void comicAdded(QString, QString); diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 907d61ca..e81082b5 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -706,7 +706,7 @@ void LibraryWindow::createConnections() connect(createLibraryDialog, &CreateLibraryDialog::libraryExists, this, &LibraryWindow::libraryAlreadyExists); connect(importComicsInfoDialog, &QDialog::finished, this, &LibraryWindow::reloadCurrentLibrary); - connect(libraryCreator, &LibraryCreator::completed, this, &LibraryWindow::showRootWidget); + connect(libraryCreator, &LibraryCreator::finished, this, &LibraryWindow::showRootWidget); connect(libraryCreator, &LibraryCreator::updated, this, &LibraryWindow::reloadCurrentLibrary); connect(libraryCreator, &LibraryCreator::created, this, &LibraryWindow::openLastCreated); connect(libraryCreator, &LibraryCreator::updatedCurrentFolder, this, &LibraryWindow::reloadAfterCopyMove);