we now load and save chats as well

This commit is contained in:
Rasmus Karlsson
2017-01-29 11:38:00 +01:00
parent 1c076b803e
commit c0b4035e6a
5 changed files with 64 additions and 7 deletions
+7
View File
@@ -226,6 +226,13 @@ Notebook::save(boost::property_tree::ptree &tree)
// Iterate through all tabs and add them to our tabs property thing
for (const auto &page : this->pages) {
boost::property_tree::ptree pTab = page->tab->save();
boost::property_tree::ptree pChats = page->save();
if (pChats.size() > 0) {
pTab.add_child("chats", pChats);
}
tabs.push_back(std::make_pair("", pTab));
}