| 1150 | } |
| 1151 | |
| 1152 | QModelIndex LibraryWindow::getCurrentFolderIndex() |
| 1153 | { |
| 1154 | if (!hasLoadedLibraryModels()) |
| 1155 | return QModelIndex(); |
| 1156 | |
| 1157 | if (foldersView->selectionModel()->selectedRows().length() > 0) |
| 1158 | return foldersModelProxy->mapToSource(foldersView->currentIndex()); |
| 1159 | else |
| 1160 | return QModelIndex(); |
| 1161 | } |
| 1162 | |
| 1163 | void LibraryWindow::enableNeededActions() |
| 1164 | { |
no test coverage detected