logic: fixed project shows up empty after exiting app while indexing previously empty project

This commit is contained in:
mlangkabel
2018-07-02 13:16:30 +02:00
parent 7c09f3339b
commit 0519fd1462
4 changed files with 13 additions and 7 deletions
@@ -66,7 +66,7 @@ size_t SqliteStorage::getVersion() const
{
std::string storageVersionStr = getMetaValue("storage_version");
if (storageVersionStr.size())
if (!storageVersionStr.empty())
{
return std::stoi(storageVersionStr);
}