summaryrefslogtreecommitdiffstats
path: root/framework/mail/maillistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/mail/maillistmodel.cpp')
-rw-r--r--framework/mail/maillistmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/mail/maillistmodel.cpp b/framework/mail/maillistmodel.cpp
index 0bed1305..b46fabf8 100644
--- a/framework/mail/maillistmodel.cpp
+++ b/framework/mail/maillistmodel.cpp
@@ -21,6 +21,7 @@
21#include "maillistmodel.h" 21#include "maillistmodel.h"
22 22
23#include <QFile> 23#include <QFile>
24#include <QDateTime>
24 25
25 26
26MailListModel::MailListModel(QObject *parent) 27MailListModel::MailListModel(QObject *parent)
@@ -77,6 +78,7 @@ QVariant MailListModel::data(const QModelIndex &idx, int role) const
77 QFile file(filename); 78 QFile file(filename);
78 if (file.open(QFile::ReadOnly)) { 79 if (file.open(QFile::ReadOnly)) {
79 auto content = file.readAll(); 80 auto content = file.readAll();
81 qWarning() << filename << content;
80 return content; 82 return content;
81 } else { 83 } else {
82 qWarning() << "Failed to open the file"; 84 qWarning() << "Failed to open the file";