logic: skip project settings migration if version is 0
This commit is contained in:
@@ -94,6 +94,10 @@ bool ProjectSettings::equalsExceptNameAndLocation(const ProjectSettings& other)
|
|||||||
|
|
||||||
bool ProjectSettings::needMigration() const
|
bool ProjectSettings::needMigration() const
|
||||||
{
|
{
|
||||||
|
if (getVersion() == 0)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return getMigrations().willMigrate(this, ProjectSettings::VERSION);
|
return getMigrations().willMigrate(this, ProjectSettings::VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user