forked from len0rd/rockbox
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
This commit is contained in:
parent
6c522624b3
commit
64321adf43
5 changed files with 112 additions and 131 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue