diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-09-20 13:28:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 13:28:33 +0200 |
commit | c6bcb6228b421983006d16c93f7cda091dc9679b (patch) | |
tree | 34bdf29ef57976517e5ce3c78e0a9dbe28d678cd /launcher/minecraft/mod/ResourceFolderModel.cpp | |
parent | 40c68595d7d5eccd1f264b2dc1e768b3faad6f16 (diff) | |
parent | a24d589845aded0a485ddced900768efaca5328b (diff) | |
download | PrismLauncher-c6bcb6228b421983006d16c93f7cda091dc9679b.tar.gz PrismLauncher-c6bcb6228b421983006d16c93f7cda091dc9679b.tar.bz2 PrismLauncher-c6bcb6228b421983006d16c93f7cda091dc9679b.zip |
Merge pull request #1108 from Scrumplex/better_texture_packs
Diffstat (limited to 'launcher/minecraft/mod/ResourceFolderModel.cpp')
-rw-r--r-- | launcher/minecraft/mod/ResourceFolderModel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/ResourceFolderModel.cpp b/launcher/minecraft/mod/ResourceFolderModel.cpp index 95bd5648..b2356309 100644 --- a/launcher/minecraft/mod/ResourceFolderModel.cpp +++ b/launcher/minecraft/mod/ResourceFolderModel.cpp @@ -14,6 +14,8 @@ ResourceFolderModel::ResourceFolderModel(QDir dir, QObject* parent) : QAbstractListModel(parent), m_dir(dir), m_watcher(this) { + FS::ensureFolderPathExists(m_dir.absolutePath()); + m_dir.setFilter(QDir::Readable | QDir::NoDotAndDotDot | QDir::Files | QDir::Dirs); m_dir.setSorting(QDir::Name | QDir::IgnoreCase | QDir::LocaleAware); |