mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 04:54:29 -04:00
Don't override the finished QThread signal in LibraryCreator
This should fix a crash in LibrariesUpdateCoordinator because the QThread can be destroyed before it finishes running.
This commit is contained in:
@ -706,12 +706,9 @@ void LibraryWindow::createConnections()
|
||||
connect(createLibraryDialog, &CreateLibraryDialog::libraryExists, this, &LibraryWindow::libraryAlreadyExists);
|
||||
connect(importComicsInfoDialog, &QDialog::finished, this, &LibraryWindow::reloadCurrentLibrary);
|
||||
|
||||
// connect(libraryCreator,SIGNAL(coverExtracted(QString)),createLibraryDialog,SLOT(showCurrentFile(QString)));
|
||||
// connect(libraryCreator,SIGNAL(coverExtracted(QString)),updateLibraryDialog,SLOT(showCurrentFile(QString)));
|
||||
connect(libraryCreator, &LibraryCreator::finished, this, &LibraryWindow::showRootWidget);
|
||||
connect(libraryCreator, &LibraryCreator::completed, this, &LibraryWindow::showRootWidget);
|
||||
connect(libraryCreator, &LibraryCreator::updated, this, &LibraryWindow::reloadCurrentLibrary);
|
||||
connect(libraryCreator, &LibraryCreator::created, this, &LibraryWindow::openLastCreated);
|
||||
// connect(libraryCreator,SIGNAL(updatedCurrentFolder()), this, SLOT(showRootWidget()));
|
||||
connect(libraryCreator, &LibraryCreator::updatedCurrentFolder, this, &LibraryWindow::reloadAfterCopyMove);
|
||||
connect(libraryCreator, &LibraryCreator::comicAdded, importWidget, &ImportWidget::newComic);
|
||||
// libraryCreator errors
|
||||
|
Reference in New Issue
Block a user