From 35f4d554203640bc4bf0e072f8f263396100cf52 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 20 Feb 2018 19:06:21 +0100 Subject: Support loading a mime message from a file --- framework/src/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/src') 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() QString File::read(const QString &path) { - QFile file(QDir::homePath() + "/" + path); + QFile file(QDir::isAbsolutePath(path) ? path : QDir::homePath() + "/" + path); if (file.open(QIODevice::ReadOnly)) { return file.readAll(); } -- cgit v1.2.3