Don't show a sync success status toolip when signed out

This commit is contained in:
Jocelyn Turcotte 2015-08-29 13:04:10 +02:00
Родитель f77ae28ed1
Коммит 688aaadb60
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -172,7 +172,10 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const
case FolderStatusDelegate::FolderSyncPaused : return f->syncPaused(); case FolderStatusDelegate::FolderSyncPaused : return f->syncPaused();
case FolderStatusDelegate::FolderAccountConnected : return accountConnected; case FolderStatusDelegate::FolderAccountConnected : return accountConnected;
case Qt::ToolTipRole: case Qt::ToolTipRole:
if ( accountConnected )
return Theme::instance()->statusHeaderText(f->syncResult().status()); return Theme::instance()->statusHeaderText(f->syncResult().status());
else
return tr("Signed out");
case FolderStatusDelegate::FolderStatusIconRole: case FolderStatusDelegate::FolderStatusIconRole:
if ( accountConnected ) { if ( accountConnected ) {
auto theme = Theme::instance(); auto theme = Theme::instance();