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:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-09-23 12:42:12 +0300
committerHannah von Reth <vonreth@kde.org>2021-09-28 18:26:47 +0300
commit39b92322059412cde95506ffb7c93fe05fba1782 (patch)
treeb3cdbc860b9cff6a69c66ad047d78f6aa3bf1965 /src/gui/folderstatusmodel.cpp
parent13bc7d51395f50a8584fa09eb3ae2267d7dbd38e (diff)
Rename Folder::ok() to ::isReady()
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 50ffe327d..8e3caece7 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -110,7 +110,7 @@ Qt::ItemFlags FolderStatusModel::flags(const QModelIndex &index) const
auto flags = Qt::ItemIsEnabled;
if (_folders.size() > index.row()) {
const SubFolderInfo &folderInfo = _folders.at(index.row());
- flags = folderInfo._folder->ok() ? Qt::ItemIsEnabled : Qt::NoItemFlags;
+ flags = folderInfo._folder->isReady() ? Qt::ItemIsEnabled : Qt::NoItemFlags;
}
switch (classify(index)) {
@@ -224,7 +224,7 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const
return errors;
}
case FolderStatusDelegate::FolderInfoMsg:
- return f->ok() && f->virtualFilesEnabled() && f->vfs().mode() != Vfs::Mode::WindowsCfApi
+ return f->isReady() && f->virtualFilesEnabled() && f->vfs().mode() != Vfs::Mode::WindowsCfApi
? QStringList(tr("Virtual file support is enabled."))
: QStringList();
case FolderStatusDelegate::SyncRunning:
@@ -542,7 +542,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->ok() && !info->_folder->supportsSelectiveSync()) {
+ if (info->_folder && info->_folder->isReady() && !info->_folder->supportsSelectiveSync()) {
// Selective sync is hidden in that case
return false;
}