diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-06 03:35:40 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-06 03:35:40 +0000 |
commit | f3491e97d0d96f8df8a3c5a16efdef19c0796770 (patch) | |
tree | b5de3be4832afe9ab7e213ea12d8faa2a3335632 /utils/themeeditor/parsetreemodel.cpp | |
parent | 5619b4f6cf968b8d5820d214790ec29f7f109a63 (diff) | |
download | rockbox-f3491e97d0d96f8df8a3c5a16efdef19c0796770.tar.gz rockbox-f3491e97d0d96f8df8a3c5a16efdef19c0796770.zip |
Theme Editor: Began working on open document functionality (still incomplete), fixed a nested conditional parsing bug in the parser, and fixed segfault-on-codegen-from-empty-tree bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26609 a1c6a512-1295-4272-9138-f99709370657
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) |