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 eecdc98..8da0c26 100644 --- a/utils/themeeditor/parsetreemodel.cpp +++ b/utils/themeeditor/parsetreemodel.cpp @@ -49,7 +49,10 @@ ParseTreeModel::~ParseTreeModel() QString ParseTreeModel::genCode() { - return root->genCode(); + if(root) + return root->genCode(); + else + return ""; } bool ParseTreeModel::changeTree(const char *document) |