Skip to content

Commit

Permalink
App: fix lost of Link when renaming linked file
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and yorikvanhavre committed Apr 27, 2020
1 parent b32ec19 commit 7069d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/PropertyLinks.cpp
Expand Up @@ -2670,7 +2670,7 @@ class App::DocInfo :
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");
Expand Down

0 comments on commit 7069d9a

Please sign in to comment.