summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/messageparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/domain/messageparser.cpp')
-rw-r--r--framework/src/domain/messageparser.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/src/domain/messageparser.cpp b/framework/src/domain/messageparser.cpp
index 6df50ebd..76c060f0 100644
--- a/framework/src/domain/messageparser.cpp
+++ b/framework/src/domain/messageparser.cpp
@@ -54,6 +54,9 @@ void MessageParser::setMessage(const QVariant &message)
54 54
55QAbstractItemModel *MessageParser::newTree() const 55QAbstractItemModel *MessageParser::newTree() const
56{ 56{
57 if (!d->mParser) {
58 return nullptr;
59 }
57 const auto model = new NewModel(d->mParser); 60 const auto model = new NewModel(d->mParser);
58 // new ModelTest(model, model); 61 // new ModelTest(model, model);
59 return model; 62 return model;
@@ -61,6 +64,9 @@ QAbstractItemModel *MessageParser::newTree() const
61 64
62QAbstractItemModel *MessageParser::attachments() const 65QAbstractItemModel *MessageParser::attachments() const
63{ 66{
67 if (!d->mParser) {
68 return nullptr;
69 }
64 const auto model = new AttachmentModel(d->mParser); 70 const auto model = new AttachmentModel(d->mParser);
65 // new ModelTest(model, model); 71 // new ModelTest(model, model);
66 return model; 72 return model;