diff --git a/apps/opencs/editor.cpp b/apps/opencs/editor.cpp index e8e2d9077..794ca3d7b 100644 --- a/apps/opencs/editor.cpp +++ b/apps/opencs/editor.cpp @@ -189,7 +189,7 @@ void CS::Editor::createNewFile (const boost::filesystem::path &savePath) files.push_back(path.toUtf8().constData()); } - files.push_back(mFileDialog.filename().toUtf8().constData()); + files.push_back (savePath); mDocumentManager.addDocument (files, savePath, true);