Skip to content

Commit

Permalink
mobile: fix reading of cache dir
Browse files Browse the repository at this point in the history
For some reason the flag to exclude . and .. breaks this functionality.
It works just fine without that flag, so let's just remove it.

Signed-off-by: Dirk Hohndel <[email protected]>
  • Loading branch information
dirkhh committed Aug 29, 2022
1 parent d257a62 commit 8c64454
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
divelist: do not include planned versions of a dive if there is real data
desktop: fix key composition in tag widgets and dive site widget
mobile: allow cloud account deletion (Apple app store requirement)
mobile: fix listing of local cloud cache directories

---
* Always add new entries at the very top of this file above other existing entries and this note.
Expand Down
2 changes: 1 addition & 1 deletion mobile-widgets/qmlmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,7 @@ void QMLManager::importCacheRepo(QString repo)
QStringList QMLManager::cloudCacheList() const
{
QDir localCacheDir(QString("%1/cloudstorage/").arg(system_default_directory()));
QStringList dirs = localCacheDir.entryList(QDir::NoDotAndDotDot);
QStringList dirs = localCacheDir.entryList();
QStringList result;
foreach(QString dir, dirs) {
QString originsDir = QString("%1/cloudstorage/%2/.git/refs/remotes/origin/").arg(system_default_directory()).arg(dir);
Expand Down

0 comments on commit 8c64454

Please sign in to comment.