Commit 5e8544f1 authored by Jasem Mutlaq's avatar Jasem Mutlaq

If dark frame fails to load then remove it completely and capture a new one

parent b10c0f17
......@@ -102,7 +102,14 @@ FITSData * DarkLibrary::getDarkFrame(ISD::CCDChip * targetChip, double duration)
if (rc)
return darkFiles[filename];
else
{
// Remove bad dark frame
emit newLog(i18n("Removing bad dark frame file %1", filename));
darkFiles.remove(filename);
QFile::remove(filename);
KStarsData::Instance()->userdb()->DeleteDarkFrame(filename);
return NULL;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment