Do not use the folders view select index workaround in Qt6

This commit is contained in:
Luis Ángel San Martín 2022-09-16 20:27:57 +02:00
parent 2de84f5780
commit 3bb8f88e3c

View File

@ -262,7 +262,9 @@ void YACReaderNavigationController::loadPreviousStatus()
void YACReaderNavigationController::setupConnections()
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
connect(libraryWindow->foldersView, &YACReaderTreeView::currentIndexChanged, this, &YACReaderNavigationController::selectedFolder);
#endif
connect(libraryWindow->foldersView, &YACReaderTreeView::clicked, this, &YACReaderNavigationController::selectedFolder);
connect(libraryWindow->listsView, &QAbstractItemView::clicked, this, &YACReaderNavigationController::selectedList);
connect(libraryWindow->historyController, &YACReaderHistoryController::modelIndexSelected, this, &YACReaderNavigationController::selectedIndexFromHistory);