Clear from cache - for selected thumbnails (issue 386)

This commit is contained in:
michael
2011-02-05 08:04:11 -05:00
parent 93fa7e25ae
commit 3711a6df5e
7 changed files with 65 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
* This file is part of RawTherapee.
*
* Copyright (c) 2004-2010 Gabor Horvath <hgabor@rawtherapee.com>
* Copyright (c) 2011 Michael Ezra <www.michaelezra.com>
*
* RawTherapee is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -657,6 +658,18 @@ void FileCatalog::renameRequested (std::vector<FileBrowserEntry*> tbe) {
*/
}
void FileCatalog::clearFromCacheRequested (std::vector<FileBrowserEntry*> tbe, bool leavenotrace) {
if (tbe.size()==0)
return;
for (unsigned int i=0; i<tbe.size(); i++) {
Glib::ustring fname = tbe[i]->filename;
// remove from cache
cacheMgr->clearFromCache (fname,leavenotrace);
}
}
void FileCatalog::categoryButtonToggled (Gtk::ToggleButton* b) {
//was control key pressed