mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Fix accessing the root folder for setting the library type
This commit is contained in:
@ -608,8 +608,7 @@ void LibraryWindow::createMenus()
|
||||
auto typeMenu = new QMenu(tr("Set type"), selectedLibrary);
|
||||
|
||||
connect(typeMenu, &QMenu::aboutToShow, this, [=]() {
|
||||
auto rootIndex = foldersModel->index(0, 0);
|
||||
auto folder = foldersModel->getFolder(rootIndex);
|
||||
auto folder = foldersModel->getRootFolder();
|
||||
setupActions(folder.type);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user