Fix the key file write path which depends on exceptions from loading before writing being swalloed.
This commit is contained in:
@@ -199,7 +199,10 @@ int CacheImageData::save (const Glib::ustring& fname)
|
||||
try {
|
||||
|
||||
Glib::KeyFile keyFile;
|
||||
keyFile.load_from_file (fname);
|
||||
|
||||
try {
|
||||
keyFile.load_from_file (fname);
|
||||
} catch (Glib::Error&) {}
|
||||
|
||||
keyFile.set_string ("General", "MD5", md5);
|
||||
keyFile.set_string ("General", "Version", VERSION); // Application's version
|
||||
|
Reference in New Issue
Block a user