src/documentmanager.cpp

changeset 259
c27612f0eac0
parent 235
7ef03c2b46ab
child 262
dc33f8a707c4
--- a/src/documentmanager.cpp	Wed Jun 22 23:51:06 2022 +0300
+++ b/src/documentmanager.cpp	Sun Jun 26 19:44:45 2022 +0300
@@ -117,7 +117,7 @@
 	const OpenType openType
 ) {
 	QFile file{path};
-	const QString name = pathToName(path);
+	const QString name = pathToName(QFileInfo{path});
 	file.open(QFile::ReadOnly | QFile::Text);
 	std::unique_ptr<Model> newModel = std::make_unique<Model>(nullptr);
 	QTextStream textStream{&file};

mercurial