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:
authorKlaas Freitag <freitag@owncloud.com>2013-11-25 20:38:17 +0400
committerKlaas Freitag <freitag@owncloud.com>2013-11-25 20:49:59 +0400
commit33ff6b3934213db5aacb1dee58cc74f8f09b2324 (patch)
treea17774e0194e6ffd631ecb3804d4cadc9fdf1763 /src/mirall
parentca3d8ab1936ebbd7b7cef7e805d683e6ed2bfebb (diff)
Even if problems occured show the Ok-Icon in the setup dialog.
Fixes bug #942.
Diffstat (limited to 'src/mirall')
-rw-r--r--src/mirall/accountsettings.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mirall/accountsettings.cpp b/src/mirall/accountsettings.cpp
index b40bb2ba9..e23b64fe8 100644
--- a/src/mirall/accountsettings.cpp
+++ b/src/mirall/accountsettings.cpp
@@ -248,7 +248,11 @@ void AccountSettings::folderToModelItem( QStandardItem *item, Folder *f )
} // we keep the previous icon for the SyncPrepare state.
} else {
// kepp the previous icon for the prepare phase.
- item->setData( theme->syncStateIcon( status ), FolderStatusDelegate::FolderStatusIconRole );
+ if( status == SyncResult::Problem) {
+ item->setData( theme->syncStateIcon( SyncResult::Success), FolderStatusDelegate::FolderStatusIconRole );
+ } else {
+ item->setData( theme->syncStateIcon( status ), FolderStatusDelegate::FolderStatusIconRole );
+ }
}
} else {
item->setData( theme->folderDisabledIcon( ), FolderStatusDelegate::FolderStatusIconRole ); // size 48 before