mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 07:24:58 -04:00
fixed bug causing wrong index being reloaded in foldersView
This commit is contained in:
@ -1215,6 +1215,7 @@ void LibraryWindow::loadLibrary(const QString & name)
|
||||
foldersModel->setupModelData(path);
|
||||
foldersModelProxy->setSourceModel(foldersModel);
|
||||
foldersView->setModel(foldersModelProxy);
|
||||
foldersView->setCurrentIndex(QModelIndex()); //why is this necesary?? by default it seems that returns an arbitrary index.
|
||||
|
||||
listsModel->setupReadingListsData(path);
|
||||
listsModelProxy->setSourceModel(listsModel);
|
||||
|
Reference in New Issue
Block a user