mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 06:32:35 +02:00
Create data directory if doesn't exist
This commit is contained in:
parent
939749e084
commit
83f92aff9f
1 changed files with 5 additions and 0 deletions
|
@ -93,6 +93,11 @@ void addAvatarEntities(const QVariantList& avatarEntities) {
|
|||
}
|
||||
|
||||
AvatarBookmarks::AvatarBookmarks() {
|
||||
QDir directory(PathUtils::getAppDataPath());
|
||||
if (!directory.exists()) {
|
||||
directory.mkpath(".");
|
||||
}
|
||||
|
||||
_bookmarksFilename = PathUtils::getAppDataPath() + "/" + AVATARBOOKMARKS_FILENAME;
|
||||
if(!QFile::exists(_bookmarksFilename)) {
|
||||
auto defaultBookmarksFilename = PathUtils::resourcesPath() + QString("avatar/bookmarks") + "/" + AVATARBOOKMARKS_FILENAME;
|
||||
|
|
Loading…
Reference in a new issue