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

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2015-08-18 14:21:02 +0300
committerOlivier Goffart <ogoffart@woboq.com>2015-08-18 14:21:02 +0300
commit38aa4cf3040cfe8b096ed4eec001b273622b8dd3 (patch)
treee59e8b708d907c2082beac1e32a79ac151331c2e /src/gui/folderstatusmodel.h
parent0638f99b79c5ff5d9e7e491e8ba8b7cbec4b1237 (diff)
Folder Model: add an error item when one cannot fetch the list of folders #3524
Diffstat (limited to 'src/gui/folderstatusmodel.h')
-rw-r--r--src/gui/folderstatusmodel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/folderstatusmodel.h b/src/gui/folderstatusmodel.h
index 8279be3ff..d849ee2ab 100644
--- a/src/gui/folderstatusmodel.h
+++ b/src/gui/folderstatusmodel.h
@@ -53,7 +53,7 @@ public:
struct SubFolderInfo {
SubFolderInfo()
: _folder(0), _size(0), _fetched(false), _fetching(false), _isUndecided(false),
- _checked(Qt::Checked) {}
+ _hasError(false), _checked(Qt::Checked) {}
Folder *_folder;
QString _name;
QString _path;
@@ -63,6 +63,7 @@ public:
bool _fetched; // If we did the LSCOL for this folder already
bool _fetching;
bool _isUndecided; // undecided folder are the big folder that the user has not accepted yet
+ bool _hasError; // If the last fetching job ended in an error
Qt::CheckState _checked;
struct Progress {
@@ -79,7 +80,7 @@ public:
QVector<SubFolderInfo> _folders;
- enum ItemType { RootFolder, SubFolder, AddButton/*, SelectiveSyncText*/ };
+ enum ItemType { RootFolder, SubFolder, AddButton, ErrorLabel };
ItemType classify(const QModelIndex &index) const;
SubFolderInfo *infoForIndex(const QModelIndex &index) const;