summaryrefslogtreecommitdiffstats
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.tar.bz2
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()
QString ParseTreeModel::genCode()
{
- return root->genCode();
+ if(root)
+ return root->genCode();
+ else
+ return "";
}
bool ParseTreeModel::changeTree(const char *document)