New feature: Color Labels (issue 684) and porting rank and inTrash to pp3
This commit is contained in:
@@ -497,23 +497,22 @@ Glib::ustring BatchQueue::calcAutoFileNameBase (const Glib::ustring& origFileNam
|
||||
}
|
||||
else if (options.savePathTemplate[ix]=='f') {
|
||||
path = path + filename;
|
||||
}
|
||||
else if (options.savePathTemplate[ix]=='r') {
|
||||
CacheImageData cid;
|
||||
char rank;
|
||||
|
||||
if (cid.load(cacheMgr->getCacheFileName("data", origFileName, CacheManager::getMD5(origFileName))+".txt") == 1) {
|
||||
rank = '0';
|
||||
} else {
|
||||
if (!cid.inTrash)
|
||||
rank = cid.rank + '0';
|
||||
else
|
||||
rank = 'x';
|
||||
}
|
||||
|
||||
path += rank;
|
||||
}
|
||||
else if (options.savePathTemplate[ix]=='r') { // rank from pparams
|
||||
char rank;
|
||||
rtengine::procparams::ProcParams pparams;
|
||||
if( pparams.load(origFileName + paramFileExtension)==0 ){
|
||||
if (!pparams.inTrash)
|
||||
rank = pparams.rank + '0';
|
||||
else
|
||||
rank = 'x';
|
||||
}
|
||||
else
|
||||
rank = '0'; // if param file not loaded (e.g. does not exist), default to rank=0
|
||||
path += rank;
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
path = path + options.savePathTemplate[ix];
|
||||
ix++;
|
||||
|
Reference in New Issue
Block a user