Copy of old pp3 kept when renaming file, Issue 2266

This commit is contained in:
Ingo
2014-02-27 16:13:41 +01:00
parent 7232aa2c6e
commit 5fdd89235a

View File

@@ -991,9 +991,10 @@ void FileCatalog::renameRequested (std::vector<FileBrowserEntry*> tbe) {
}
else {
success = true;
if (!safe_g_rename (ofname, nfname)) {
cacheMgr->renameEntry (ofname, tbe[i]->thumbnail->getMD5(), nfname);
reparseDirectory ();
if (!safe_g_rename (ofname, nfname)) {
cacheMgr->renameEntry (ofname, tbe[i]->thumbnail->getMD5(), nfname);
safe_g_remove(ofname + paramFileExtension);
reparseDirectory ();
}
}
}