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:
Diffstat (limited to 'src/mirall/statusdialog.cpp')
-rw-r--r--src/mirall/statusdialog.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mirall/statusdialog.cpp b/src/mirall/statusdialog.cpp
index 2ce944836..9c6d52917 100644
--- a/src/mirall/statusdialog.cpp
+++ b/src/mirall/statusdialog.cpp
@@ -307,13 +307,15 @@ void StatusDialog::folderToModelItem( QStandardItem *item, Folder *f )
SyncResult res = f->syncResult();
SyncResult::Status status = res.status();
- qDebug() << "Folder state is now " << status;
QString errors = res.errorStrings().join("<br/>");
item->setData( _theme->statusHeaderText( status ), Qt::ToolTipRole );
-
- item->setData( _theme->syncStateIcon( status, 48 ), FolderViewDelegate::FolderStatusIcon );
+ if( f->syncEnabled() ) {
+ item->setData( _theme->syncStateIcon( status, 48 ), FolderViewDelegate::FolderStatusIcon );
+ } else {
+ item->setData( _theme->folderDisabledIcon(), FolderViewDelegate::FolderStatusIcon );
+ }
item->setData( _theme->statusHeaderText( status ), FolderViewDelegate::FolderStatus );
item->setData( errors, FolderViewDelegate::FolderErrorMsg );
}