summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/src/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/src/file.cpp b/framework/src/file.cpp
index b2a19c23..a57b3a38 100644
--- a/framework/src/file.cpp
+++ b/framework/src/file.cpp
@@ -36,7 +36,7 @@ QString File::data()
36 36
37QString File::read(const QString &path) 37QString File::read(const QString &path)
38{ 38{
39 QFile file(QDir::homePath() + "/" + path); 39 QFile file(QDir::isAbsolutePath(path) ? path : QDir::homePath() + "/" + path);
40 if (file.open(QIODevice::ReadOnly)) { 40 if (file.open(QIODevice::ReadOnly)) {
41 return file.readAll(); 41 return file.readAll();
42 } 42 }