You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@corinthia.apache.org by pm...@apache.org on 2015/06/07 01:20:42 UTC

[2/2] incubator-corinthia git commit: Fix path to javascript files on Windows

Fix path to javascript files on Windows

Use QUrl's toLocalFile() method instead of the path() method to
determine the local path of the directory containing the javascript
files for use in the Qt app. If we used path(), we would get results of
the form "/C:/corinthia/..." instead of "C:/corinthia/..."; only the
latter is correct.


Project: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/commit/601bc5e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/601bc5e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/601bc5e6

Branch: refs/heads/master
Commit: 601bc5e65e06bd1b089a7acc2ddf20f6e21c6655
Parents: 5f95095
Author: Peter Kelly <pe...@uxproductivity.com>
Authored: Sun Jun 7 06:19:03 2015 +0700
Committer: Peter Kelly <pe...@uxproductivity.com>
Committed: Sun Jun 7 06:19:03 2015 +0700

----------------------------------------------------------------------
 consumers/corinthia/src/Editor.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/601bc5e6/consumers/corinthia/src/Editor.cpp
----------------------------------------------------------------------
diff --git a/consumers/corinthia/src/Editor.cpp b/consumers/corinthia/src/Editor.cpp
index 9cce7b8..94d9fe0 100644
--- a/consumers/corinthia/src/Editor.cpp
+++ b/consumers/corinthia/src/Editor.cpp
@@ -248,7 +248,7 @@ void EditorPrivate::webViewloadFinished(bool ok)
 
     QString appPath = QCoreApplication::applicationDirPath();
     QString baseDir = appPath + "/../share/corinthia/js";
-    baseDir = QUrl::fromLocalFile(baseDir).path();
+    baseDir = QUrl::fromLocalFile(baseDir).toLocalFile();
     qStdOut() << "js base dir = " << baseDir << endl;
 
     for (int i = 0; jsSources[i] != NULL; i++) {