App: fix lost of Link when renaming linked file

This commit is contained in:
Zheng, Lei
2020-04-25 19:35:06 +08:00
committed by Yorik van Havre
parent c51b1cfefd
commit d73c4ff144

View File

@@ -2670,7 +2670,7 @@ public:
if(path.isEmpty() || path!=docPath) {
FC_LOG("document '" << doc.getName() << "' path changed");
auto me = shared_from_this();
auto ret = _DocInfoMap.insert(std::make_pair(path,me));
auto ret = _DocInfoMap.insert(std::make_pair(docPath,me));
if(!ret.second) {
// is that even possible?
FC_WARN("document '" << doc.getName() << "' path exists, detach");