App: fix lost of Link when renaming linked file
This commit is contained in:
committed by
Yorik van Havre
parent
c51b1cfefd
commit
d73c4ff144
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user