Fix clicking on the folders treeview when it shown results from search

This was a bug introduced when support for folder navigation using the keyboard was added.
This commit is contained in:
Luis Ángel San Martín
2022-03-28 22:32:52 +02:00
parent 9e9f035f35
commit 4c54f2a07c
3 changed files with 19 additions and 2 deletions

View File

@ -263,6 +263,7 @@ void YACReaderNavigationController::loadPreviousStatus()
void YACReaderNavigationController::setupConnections()
{
connect(libraryWindow->foldersView, &YACReaderTreeView::currentIndexChanged, this, &YACReaderNavigationController::selectedFolder);
connect(libraryWindow->foldersView, &YACReaderTreeView::clicked, this, &YACReaderNavigationController::selectedFolder);
connect(libraryWindow->listsView, &QAbstractItemView::clicked, this, &YACReaderNavigationController::selectedList);
connect(libraryWindow->historyController, &YACReaderHistoryController::modelIndexSelected, this, &YACReaderNavigationController::selectedIndexFromHistory);
connect(comicsViewsManager->emptyFolderWidget, &EmptyFolderWidget::subfolderSelected, this, &YACReaderNavigationController::selectSubfolder);