summaryrefslogtreecommitdiff
path: root/utils/themeeditor/parsetreemodel.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-06 03:35:40 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-06 03:35:40 +0000
commitf3491e97d0d96f8df8a3c5a16efdef19c0796770 (patch)
treeb5de3be4832afe9ab7e213ea12d8faa2a3335632 /utils/themeeditor/parsetreemodel.cpp
parent5619b4f6cf968b8d5820d214790ec29f7f109a63 (diff)
downloadrockbox-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.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)