On Windows, previously opened raw files can't be moved or deleted until RawTherapee is closed. Fixes #3884
This commit is contained in:
parent
0bb4589f13
commit
e242afedd6
@ -39,6 +39,7 @@ RawImage::~RawImage()
|
|||||||
{
|
{
|
||||||
if(ifp) {
|
if(ifp) {
|
||||||
fclose(ifp);
|
fclose(ifp);
|
||||||
|
ifp = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( image ) {
|
if( image ) {
|
||||||
@ -410,7 +411,11 @@ int RawImage::loadRaw (bool loadData, unsigned int imageNum, bool closeFile, Pro
|
|||||||
verbose = settings->verbose;
|
verbose = settings->verbose;
|
||||||
oprof = nullptr;
|
oprof = nullptr;
|
||||||
|
|
||||||
|
if(!ifp) {
|
||||||
ifp = gfopen (ifname); // Maps to either file map or direct fopen
|
ifp = gfopen (ifname); // Maps to either file map or direct fopen
|
||||||
|
} else {
|
||||||
|
fseek (ifp, 0, SEEK_SET);
|
||||||
|
}
|
||||||
|
|
||||||
if (!ifp) {
|
if (!ifp) {
|
||||||
return 3;
|
return 3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user