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:
authorChristian Kamm <mail@ckamm.de>2019-01-14 17:46:40 +0300
committerckamm <mail@ckamm.de>2019-01-18 13:16:14 +0300
commitc4c5e4e14c1abd92c2345ee2e9e5f47eaddb76f5 (patch)
treed961134961a403887fafc8823951c30af3f01401 /src/gui/folderstatusmodel.cpp
parentc5705de4cc4e2c3df69cd5c44141ff7a4d3b3bff (diff)
Folder: Add selective sync / ui related flags
supportsSelectiveSync(): clearer than !supportsVirtualFiles() and allows extra logic isVfsOnOffSwitchPending(): Somewhat awkward way of dealing with the phase between a user requesting vfs state to be switched and it actually happening
Diffstat (limited to 'src/gui/folderstatusmodel.cpp')
-rw-r--r--src/gui/folderstatusmodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index d93d80649..d6fe7a671 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -362,7 +362,7 @@ int FolderStatusModel::rowCount(const QModelIndex &parent) const
auto info = infoForIndex(parent);
if (!info)
return 0;
- if (info->_folder && info->_folder->supportsVirtualFiles())
+ if (info->_folder && !info->_folder->supportsSelectiveSync())
return 0;
if (info->hasLabel())
return 1;
@@ -519,7 +519,7 @@ bool FolderStatusModel::hasChildren(const QModelIndex &parent) const
if (!info)
return false;
- if (info->_folder && info->_folder->supportsVirtualFiles())
+ if (info->_folder && !info->_folder->supportsSelectiveSync())
return false;
if (!info->_fetched)
@@ -547,7 +547,7 @@ 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->supportsVirtualFiles()) {
+ if (info->_folder && !info->_folder->supportsSelectiveSync()) {
// Selective sync is hidden in that case
return false;
}