mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
mobile: fix reading of cache dir
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 <dirk@hohndel.org>
This commit is contained in:
parent
d257a623fa
commit
8c644547fb
3 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
divelist: do not include planned versions of a dive if there is real data
|
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
|
desktop: fix key composition in tag widgets and dive site widget
|
||||||
mobile: allow cloud account deletion (Apple app store requirement)
|
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.
|
* Always add new entries at the very top of this file above other existing entries and this note.
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 565bb2af027011101e9c4e840a8f49162ea4a752
|
Subproject commit a17e466bd1d2e675666e20862182d618cf6d7190
|
|
@ -2300,7 +2300,7 @@ void QMLManager::importCacheRepo(QString repo)
|
||||||
QStringList QMLManager::cloudCacheList() const
|
QStringList QMLManager::cloudCacheList() const
|
||||||
{
|
{
|
||||||
QDir localCacheDir(QString("%1/cloudstorage/").arg(system_default_directory()));
|
QDir localCacheDir(QString("%1/cloudstorage/").arg(system_default_directory()));
|
||||||
QStringList dirs = localCacheDir.entryList(QDir::NoDotAndDotDot);
|
QStringList dirs = localCacheDir.entryList();
|
||||||
QStringList result;
|
QStringList result;
|
||||||
foreach(QString dir, dirs) {
|
foreach(QString dir, dirs) {
|
||||||
QString originsDir = QString("%1/cloudstorage/%2/.git/refs/remotes/origin/").arg(system_default_directory()).arg(dir);
|
QString originsDir = QString("%1/cloudstorage/%2/.git/refs/remotes/origin/").arg(system_default_directory()).arg(dir);
|
||||||
|
|
Loading…
Reference in a new issue