mirror of
https://github.com/lubosz/overte.git
synced 2025-04-12 01:22:10 +02:00
FB17835 - On clean installs, default avatarbookmarks.json file is read-only; bookmarks reset every launch until replaced or unmarked
This commit is contained in:
parent
0560b8678c
commit
1461fdf350
1 changed files with 3 additions and 0 deletions
|
@ -108,6 +108,9 @@ AvatarBookmarks::AvatarBookmarks() {
|
|||
|
||||
if (!QFile::copy(defaultBookmarksFilename, _bookmarksFilename)) {
|
||||
qDebug() << "failed to copy" << defaultBookmarksFilename << "to" << _bookmarksFilename;
|
||||
} else {
|
||||
QFile bookmarksFile(_bookmarksFilename);
|
||||
bookmarksFile.setPermissions(bookmarksFile.permissions() | QFile::WriteUser);
|
||||
}
|
||||
}
|
||||
readFromFile();
|
||||
|
|
Loading…
Reference in a new issue