Show the sync icon in case the status is not yet defined.

This fixes the problem that on the first sync, no proper status icon is
shown on a potential long update phase.
This commit is contained in:
Klaas Freitag 2014-05-07 17:37:08 +02:00
parent bdba56f60b
commit d0b9b002e4

View file

@ -268,6 +268,10 @@ void AccountSettings::folderToModelItem( QStandardItem *item, Folder *f )
// if the folder was disabled before, set the sync icon
item->setData( theme->syncStateIcon( SyncResult::SyncRunning), FolderStatusDelegate::FolderStatusIconRole );
} // we keep the previous icon for the SyncPrepare state.
} else if( status == SyncResult::Undefined ) {
// startup, the sync was never done.
qDebug() << "XXX FIRST time sync, setting icon to sync running!";
item->setData( theme->syncStateIcon( SyncResult::SyncRunning), FolderStatusDelegate::FolderStatusIconRole );
} else {
// kepp the previous icon for the prepare phase.
if( status == SyncResult::Problem) {