From 64321adf4331a97201321f5a37d17aa90fa5d5db Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Thu, 10 Jun 2010 21:02:44 +0000 Subject: Theme Editor: Applied FS#11389, switched conditional elements to use tag fields along with children, instead of holding the tag as the first child git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26751 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/parsetreemodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/themeeditor/parsetreemodel.cpp') diff --git a/utils/themeeditor/parsetreemodel.cpp b/utils/themeeditor/parsetreemodel.cpp index 787122d02d..a709ea762f 100644 --- a/utils/themeeditor/parsetreemodel.cpp +++ b/utils/themeeditor/parsetreemodel.cpp @@ -257,8 +257,8 @@ bool ParseTreeModel::setData(const QModelIndex &index, const QVariant &value, if(element->type != COMMENT && element->type != TEXT) return false; - free(element->text); - element->text = strdup(value.toString().trimmed().toAscii()); + free(element->data); + element->data = strdup(value.toString().trimmed().toAscii()); } emit dataChanged(index, index); -- cgit v1.2.3