diff options
Diffstat (limited to 'framework/src')
-rw-r--r-- | framework/src/file.cpp | 2 |
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 | ||
37 | QString File::read(const QString &path) | 37 | QString 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 | } |