mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix navigation history (fordward was broken)
This commit is contained in:
parent
c40e915541
commit
db7fd66474
@ -222,7 +222,10 @@ void YACReaderNavigationController::loadIndexFromHistory(const YACReaderLibraryS
|
|||||||
case YACReaderLibrarySourceContainer::Folder: {
|
case YACReaderLibrarySourceContainer::Folder: {
|
||||||
QModelIndex mi = libraryWindow->foldersModelProxy->mapFromSource(sourceMI);
|
QModelIndex mi = libraryWindow->foldersModelProxy->mapFromSource(sourceMI);
|
||||||
libraryWindow->foldersView->scrollTo(mi, QAbstractItemView::PositionAtTop);
|
libraryWindow->foldersView->scrollTo(mi, QAbstractItemView::PositionAtTop);
|
||||||
|
// currentIndexChanged is about to be emited, but we don't want it to end in YACReaderHistoryController::updateHistory
|
||||||
|
disconnect(libraryWindow->foldersView, &YACReaderTreeView::currentIndexChanged, this, &YACReaderNavigationController::selectedFolder);
|
||||||
libraryWindow->foldersView->setCurrentIndex(mi);
|
libraryWindow->foldersView->setCurrentIndex(mi);
|
||||||
|
connect(libraryWindow->foldersView, &YACReaderTreeView::currentIndexChanged, this, &YACReaderNavigationController::selectedFolder);
|
||||||
loadFolderInfo(sourceMI);
|
loadFolderInfo(sourceMI);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user