diff options
author | Klaas Freitag <freitag@owncloud.com> | 2013-11-25 20:38:17 +0400 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2013-11-25 20:49:59 +0400 |
commit | 33ff6b3934213db5aacb1dee58cc74f8f09b2324 (patch) | |
tree | a17774e0194e6ffd631ecb3804d4cadc9fdf1763 /src/mirall | |
parent | ca3d8ab1936ebbd7b7cef7e805d683e6ed2bfebb (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.cpp | 6 |
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 |