logic: Fixed db refreshed when opening with existing db
This commit is contained in:
+1
-4
@@ -145,15 +145,12 @@ void Project::setProjectSettingsFilePath(const FilePath& path)
|
||||
else
|
||||
{
|
||||
FilePath dbPath = FilePath(path).replaceExtension("coatidb");
|
||||
m_storageWasLoaded = dbPath.exists();
|
||||
|
||||
if (!m_storage || !dbPath.exists())
|
||||
{
|
||||
m_storage = std::make_shared<Storage>(dbPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_storageWasLoaded = true;
|
||||
}
|
||||
|
||||
if (m_storageWasLoaded && m_storage->getVersion().isOlderStorageVersionThan(Version::getApplicationVersion()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user