src/documentmanager.cpp

changeset 262
dc33f8a707c4
parent 259
c27612f0eac0
child 264
76a025db4948
--- a/src/documentmanager.cpp	Sun Jun 26 20:27:04 2022 +0300
+++ b/src/documentmanager.cpp	Sun Jun 26 20:54:09 2022 +0300
@@ -195,7 +195,7 @@
 		QSaveFile file{info->path};
 		file.setDirectWriteFallback(true);
 		if (file.open(QSaveFile::WriteOnly)) {
-			::save(info->model.get(), &file);
+			::save(*info->model.get(), &file);
 			const bool commitSucceeded = file.commit();
 			if (not commitSucceeded) {
 				errors << QObject::tr("Could not save: %1").arg(file.errorString());

mercurial