diff --git a/src/App/PropertyLinks.cpp b/src/App/PropertyLinks.cpp index b936c9665e..dca519f014 100644 --- a/src/App/PropertyLinks.cpp +++ b/src/App/PropertyLinks.cpp @@ -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");