Add a button to filter the original files to the file browser.

This commit is contained in:
Adam Reichold
2015-11-08 12:24:48 +01:00
parent d3ac22531b
commit ee766b71b8
6 changed files with 41 additions and 21 deletions

View File

@@ -1461,7 +1461,7 @@ void FileBrowser::applyFilter (const BrowserFilter& filter)
MYWRITERLOCK(l, entryRW); // Don't make this a writer lock! HOMBRE: Why? 'selected' is modified here
#endif
if (true/* TODO: filterOriginal */) {
if (filter.showOriginal) {
findOriginalEntries(fd);
}
@@ -1495,7 +1495,7 @@ bool FileBrowser::checkFilter (ThumbBrowserEntryBase* entryb) // true -> entry
FileBrowserEntry* entry = static_cast<FileBrowserEntry*>(entryb);
if (true/* TODO: filterOriginal */ && entry->getOriginal() != NULL) {
if (filter.showOriginal && entry->getOriginal() != NULL) {
return false;
}