diff --git a/saoriview.cpp b/saoriview.cpp index 3c6643b..e28889a 100644 --- a/saoriview.cpp +++ b/saoriview.cpp @@ -462,8 +462,8 @@ QStringList t = timeline.split(':'); if (t.count() == 2) { if (t[1] == m_viewname.split(':')[1]) { - QJsonObject json = QJsonDocument::fromJson(data).object(); - ui->header->setContent(headerParser(json)); + m_header = QJsonDocument::fromJson(data).object(); + ui->header->setContent(headerParser(m_header)); ui->header->show(); } } diff --git a/saoriview.h b/saoriview.h index 2fd9a34..0b0b0e8 100644 --- a/saoriview.h +++ b/saoriview.h @@ -55,6 +55,7 @@ qlonglong m_maxid; qlonglong m_sinceid; int m_timecount; + QJsonObject m_header; static QList m_viewList;