logic: Fixed db refreshed when opening with existing db

This commit is contained in:
Eberhard Graether
2015-12-14 11:21:03 +01:00
parent ff3377161b
commit e8dda6acbe
+1 -4
View File
@@ -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()))
{