logic: skip project settings migration if version is 0

This commit is contained in:
mlangkabel
2018-12-18 13:23:28 +01:00
parent 6d2c89b127
commit e3940fdf19
+4
View File
@@ -94,6 +94,10 @@ bool ProjectSettings::equalsExceptNameAndLocation(const ProjectSettings& other)
bool ProjectSettings::needMigration() const
{
if (getVersion() == 0)
{
return false;
}
return getMigrations().willMigrate(this, ProjectSettings::VERSION);
}