Optimized thumbnail generation: If the image was not edited yet anyway, only the (fast) raw internal preview image is taken. So if you just downloaded the many pictures from the camera, your machine will not busy generating thumbnails.

This commit is contained in:
Oliver Duis
2010-10-29 16:51:01 +02:00
parent 2502010850
commit 96adb21c48
2 changed files with 3 additions and 2 deletions

View File

@@ -81,9 +81,9 @@ void FileBrowserEntry::refreshThumbnailImage () {
}
void FileBrowserEntry::refreshQuickThumbnailImage () {
// Only make a (slow) processed preview if the picture has been edited at all
if ( thumbnail &&
thumbnail->isQuick() )
thumbnail->isQuick() && thumbnail->isPParamsValid() )
{
thumbImageUpdater->add(thumbnail, thumbnail->getProcParams(), preh, &updatepriority, true, this);
}

View File

@@ -85,6 +85,7 @@ class Thumbnail {
void loadProcParams ();
bool isQuick() { return quick_; }
bool isPParamsValid() { return pparamsValid; }
bool isRecentlySaved ();
void imageDeveloped ();
void imageEnqueued ();