Save all changes of an images rank to disk imediatly. fixes Issue 117
This commit is contained in:
parent
d9bfae769d
commit
555d17dae4
@ -470,6 +470,7 @@ void FileBrowser::rankingRequested (std::vector<FileBrowserEntry*> tbe, int rank
|
|||||||
|
|
||||||
for (int i=0; i<tbe.size(); i++) {
|
for (int i=0; i<tbe.size(); i++) {
|
||||||
tbe[i]->thumbnail->setRank (rank);
|
tbe[i]->thumbnail->setRank (rank);
|
||||||
|
tbe[i]->thumbnail->updateCache(); // needed to save the rank to disk
|
||||||
if (tbe[i]->getThumbButtonSet())
|
if (tbe[i]->getThumbButtonSet())
|
||||||
tbe[i]->getThumbButtonSet()->setRank (tbe[i]->thumbnail->getRank());
|
tbe[i]->getThumbButtonSet()->setRank (tbe[i]->thumbnail->getRank());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user