summaryrefslogtreecommitdiff
path: root/utils/themeeditor/parsetreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/parsetreemodel.cpp')
-rw-r--r--utils/themeeditor/parsetreemodel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/themeeditor/parsetreemodel.cpp b/utils/themeeditor/parsetreemodel.cpp
index eecdc98334..8da0c26ef3 100644
--- a/utils/themeeditor/parsetreemodel.cpp
+++ b/utils/themeeditor/parsetreemodel.cpp
@@ -49,7 +49,10 @@ ParseTreeModel::~ParseTreeModel()
49 49
50QString ParseTreeModel::genCode() 50QString ParseTreeModel::genCode()
51{ 51{
52 return root->genCode(); 52 if(root)
53 return root->genCode();
54 else
55 return "";
53} 56}
54 57
55bool ParseTreeModel::changeTree(const char *document) 58bool ParseTreeModel::changeTree(const char *document)