Porting following changsets to Default for the merge :
- 7faf00bc5cbe - 6f9407b451af
This commit is contained in:
@@ -35,7 +35,7 @@ using namespace rtengine::procparams;
|
||||
|
||||
Thumbnail::Thumbnail (CacheManager* cm, const Glib::ustring& fname, CacheImageData* cf)
|
||||
: fname(fname), cfs(*cf), cachemgr(cm), ref(1), enqueueNumber(0), tpp(NULL),
|
||||
pparamsValid(false), needsReProcessing(true), lastImg(NULL),
|
||||
pparamsValid(false), needsReProcessing(true),imageLoading(false), lastImg(NULL),
|
||||
initial_(false) {
|
||||
|
||||
cfs.load (getCacheFileName ("data")+".txt");
|
||||
@@ -61,7 +61,7 @@ Thumbnail::Thumbnail (CacheManager* cm, const Glib::ustring& fname, CacheImageDa
|
||||
|
||||
Thumbnail::Thumbnail (CacheManager* cm, const Glib::ustring& fname, const std::string& md5)
|
||||
: fname(fname), cachemgr(cm), ref(1), enqueueNumber(0), tpp(NULL), pparamsValid(false),
|
||||
needsReProcessing(true), lastImg(NULL),
|
||||
needsReProcessing(true),imageLoading(false), lastImg(NULL),
|
||||
initial_(true) {
|
||||
|
||||
|
||||
@@ -728,3 +728,15 @@ bool Thumbnail::openDefaultViewer(int destination) {
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
bool Thumbnail::imageLoad(bool loading)
|
||||
{
|
||||
Glib::Mutex::Lock lock(mutex);
|
||||
bool previous = imageLoading;
|
||||
if( loading && !previous ){
|
||||
imageLoading = true;
|
||||
return true;
|
||||
}else if( !loading )
|
||||
imageLoading = false;
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user