Skip to content
Extraits de code Groupes Projets

Implement the VivyDocument specification

6 files
+ 30
9
Comparer les modifications
  • Côte à côte
  • En ligne

Fichiers

+ 2
2
@@ -231,7 +231,7 @@ VivyDocument::detectDocumentType(const QFileInfo &file, Capabilities *ableType)
}
void
VivyDocument::rename(const QString &newName)
VivyDocument::copy(const QString &newName)
{
const QString newNameWithExtension =
(newName.right(fileSuffix.size()) == fileSuffix) ? newName : newName + "." + fileSuffix;
@@ -250,7 +250,7 @@ VivyDocument::rename(const QString &newName)
// Compute new paths, the document is really on disk initially
else {
qDebug() << "Renaming a real file";
renameWith(newPath, [=, this]() noexcept -> void {
copyWith(newPath, [=, this]() noexcept -> void {
documentLocation = newPath.dir();
documentName = newPath.baseName();
});
Chargement en cours