From aa9dd95d5df1071016ed64753d9d19c5ac916f6f Mon Sep 17 00:00:00 2001 From: Igor Kushnir Date: Thu, 4 Feb 2021 20:31:26 +0200 Subject: [PATCH] LibraryWindow: remove a duplicate signal-slot connection QSqlDatabase::commit() in ComicModel::finishTransaction() returned false (failed) when this slot was invoked the second time in a row. --- YACReaderLibrary/library_window.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 4cdc4b83..f74d2b27 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -2544,7 +2544,6 @@ void LibraryWindow::deleteComicsFromDisk() connect(remover, SIGNAL(remove(int)), comicsModel, SLOT(remove(int))); connect(remover, SIGNAL(removeError()), this, SLOT(setRemoveError())); connect(remover, SIGNAL(finished()), comicsModel, SLOT(finishTransaction())); - connect(remover, SIGNAL(finished()), comicsModel, SLOT(finishTransaction())); connect(remover, SIGNAL(removedItemsFromFolder(qulonglong)), foldersModel, SLOT(updateFolderChildrenInfo(qulonglong))); connect(remover, SIGNAL(finished()), this, SLOT(checkEmptyFolder()));