| 545 | } |
| 546 | |
| 547 | bool UBFeaturesController::isInRecentlyOpenDocuments(QString documentFolderName) |
| 548 | { |
| 549 | for(auto&& url : std::as_const(recentlyOpenDocuments)) |
| 550 | { |
| 551 | QString localFile = url.toLocalFile(); |
| 552 | if (localFile.endsWith(".rdf")) |
| 553 | { |
| 554 | if (localFile.section('/', -2, -2) == documentFolderName) //section before "/metadata.rdf" is documentFolderName |
| 555 | { |
| 556 | return true; |
| 557 | } |
| 558 | } |
| 559 | } |
| 560 | return false; |
| 561 | } |
| 562 | |
| 563 | void UBFeaturesController::loadFavoriteList() |
| 564 | { |
no outgoing calls
no test coverage detected