mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 13:30:00 -08:00
Protect existing fork profiles from inherited MTG imports and sources
This commit is contained in:
parent
6923284d04
commit
d70f199f97
1 changed files with 1 additions and 2 deletions
|
|
@ -264,8 +264,7 @@ void SettingsCache::loadPaths()
|
||||||
if (!QFile::copy(QStringLiteral(":/resources/continuumatrice-empty-carddatabase.xml"), initialCardDb)) {
|
if (!QFile::copy(QStringLiteral(":/resources/continuumatrice-empty-carddatabase.xml"), initialCardDb)) {
|
||||||
qCWarning(SettingsCacheLog) << "Could not create Continuumatrice starter database:" << initialCardDb;
|
qCWarning(SettingsCacheLog) << "Could not create Continuumatrice starter database:" << initialCardDb;
|
||||||
} else {
|
} else {
|
||||||
QFile::setPermissions(initialCardDb, QFile::ReadOwner | QFile::WriteOwner |
|
QFile::setPermissions(initialCardDb, QFile::ReadOwner | QFile::WriteOwner);
|
||||||
QFile::ReadUser | QFile::WriteUser);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
computeFilePath("tokenDatabase", dataPath + "/tokens.xml");
|
computeFilePath("tokenDatabase", dataPath + "/tokens.xml");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue