update// added new writer method to filesystem to convert old format to new

This commit is contained in:
Strider
2020-05-17 14:57:38 +02:00
parent d4bf7a83c8
commit e6b8f000c9
7 changed files with 76 additions and 32 deletions

View File

@@ -43,10 +43,7 @@ QString ContactDataStore::dump()
j.push_back(c.second.toJson());
}
contacts["contacts"] = j;
std::string dump = contacts.dump(4);
qDebug() << dump.c_str();
return "";
return QString::fromStdString(contacts.dump(4));
}
ContactDataStore* ContactDataStore::instance = nullptr;