diff --git a/src/Lib/Document/VivyDocument.cc b/src/Lib/Document/VivyDocument.cc index 377425dee10d6b8c08b443e48289d6260c628e99..d907d412141d03e53be3567e4c76759b0e262d17 100644 --- a/src/Lib/Document/VivyDocument.cc +++ b/src/Lib/Document/VivyDocument.cc @@ -245,6 +245,7 @@ VivyDocument::copy(const QString &newName) copyWith(newPath, [=, this]() noexcept -> void { documentLocation = newPath.dir(); documentName = newPath.baseName(); + name = newPath.absoluteFilePath(); }); } @@ -266,6 +267,7 @@ VivyDocument::rename(const QString &newName) renameWith(newPath, [=, this]() noexcept -> void { documentLocation = newPath.dir(); documentName = newPath.baseName(); + name = newPath.absoluteFilePath(); }); } @@ -285,6 +287,7 @@ VivyDocument::saveMemoryFile(const QFileInfo &newPath) { documentName = newPath.baseName(); documentLocation = newPath.absoluteDir(); + name = newPath.absoluteFilePath(); documentOptions = static_cast<Options>(documentOptions & (~MemoryDocumentCreation)); qDebug().nospace() << "Renaming a memory file => create it on disk with { " << documentLocation << ", " << documentName << " }";