diff options
Diffstat (limited to 'utils/themeeditor/parsetreemodel.cpp')
-rw-r--r-- | utils/themeeditor/parsetreemodel.cpp | 5 |
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 | ||
50 | QString ParseTreeModel::genCode() | 50 | QString ParseTreeModel::genCode() |
51 | { | 51 | { |
52 | return root->genCode(); | 52 | if(root) |
53 | return root->genCode(); | ||
54 | else | ||
55 | return ""; | ||
53 | } | 56 | } |
54 | 57 | ||
55 | bool ParseTreeModel::changeTree(const char *document) | 58 | bool ParseTreeModel::changeTree(const char *document) |