| 2022 | } |
| 2023 | |
| 2024 | void LibraryWindow::setRootIndex() |
| 2025 | { |
| 2026 | if (!libraries.isEmpty()) { |
| 2027 | QString path = LibraryPaths::libraryDataPath(libraries.getPath(selectedLibrary->currentText())); |
| 2028 | QDir d; // TODO change this by static methods (utils class?? with delTree for example) |
| 2029 | if (d.exists(path)) { |
| 2030 | navigationController->selectedFolder(QModelIndex()); |
| 2031 | } else { |
| 2032 | contentViewsManager->comicsView->setModel(NULL); |
| 2033 | } |
| 2034 | |
| 2035 | auto selectionModel = foldersView->selectionModel(); |
| 2036 | if (selectionModel != nullptr) |
| 2037 | selectionModel->clear(); |
| 2038 | } |
| 2039 | } |
| 2040 | |
| 2041 | void LibraryWindow::toggleFullScreen() |
| 2042 | { |
nothing calls this directly
no test coverage detected