Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2018-08-30 19:14:13 +0300
committerOlivier Goffart <olivier@woboq.com>2018-08-31 17:01:21 +0300
commit0696805cef30e5029533d8d5d10b66bef694d8ca (patch)
tree700400b82f5129ae9fa405418910bc07af8d7624 /src/gui/folderstatusmodel.cpp
parent1e5b632e6084182eae4c88dad87b1c69d94a156c (diff)
Virtual files: Don't show selective sync
Issue #6724
Diffstat (limited to 'src/gui/folderstatusmodel.cpp')
-rw-r--r--src/gui/folderstatusmodel.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index 5d32b8d94..ea0c6d5fd 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -362,6 +362,8 @@ int FolderStatusModel::rowCount(const QModelIndex &parent) const
auto info = infoForIndex(parent);
if (!info)
return 0;
+ if (info->_folder && info->_folder->useVirtualFiles())
+ return 0;
if (info->hasLabel())
return 1;
return info->_subs.count();
@@ -517,6 +519,9 @@ bool FolderStatusModel::hasChildren(const QModelIndex &parent) const
if (!info)
return false;
+ if (info->_folder && info->_folder->useVirtualFiles())
+ return false;
+
if (!info->_fetched)
return true;
@@ -542,6 +547,10 @@ bool FolderStatusModel::canFetchMore(const QModelIndex &parent) const
// Keep showing the error to the user, it will be hidden when the account reconnects
return false;
}
+ if (info->_folder && info->_folder->useVirtualFiles()) {
+ // Selective sync is hidden in that case
+ return false;
+ }
return true;
}