mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed bug causing wrong index being reloaded in foldersView
This commit is contained in:
parent
2434f47a06
commit
b212d3f690
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user