Fix caching issues in last commit

This commit is contained in:
Christophe Dumez 2012-05-26 21:14:48 +03:00
parent 9a964d871d
commit 122655758d
5 changed files with 25 additions and 13 deletions

View file

@ -37,12 +37,11 @@ JsonList::JsonList() : m_dirty(false)
const QString& JsonList::toString() const
{
static QString str;
if (m_dirty) {
str = "[" + m_items.join(",") + "]";
m_json = "[" + m_items.join(",") + "]";
m_dirty = false;
}
return str;
return m_json;
}
void JsonList::clear()