From 3d8216ee1793d299f53677410460521b3588a325 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Mon, 15 Sep 2014 09:51:39 +0200 Subject: [PATCH] fixed broken content file list in case of newly created addons --- apps/opencs/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);