data: Fixed version check when opening older db
This commit is contained in:
+1
-6
@@ -150,12 +150,7 @@ void Project::setProjectSettingsFilePath(const FilePath& path)
|
||||
if (!m_storage || !dbPath.exists())
|
||||
{
|
||||
m_storage = std::make_shared<Storage>(dbPath);
|
||||
}
|
||||
|
||||
if (m_storageWasLoaded && m_storage->getVersion().isOlderStorageVersionThan(Version::getApplicationVersion()))
|
||||
{
|
||||
m_storage->clear();
|
||||
m_storageWasLoaded = false;
|
||||
m_storageWasLoaded = m_storage->init();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user