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::FolderAccountConnected : return accountConnected;
case Qt::ToolTipRole:
return Theme::instance()->statusHeaderText(f->syncResult().status());
if ( accountConnected )
return Theme::instance()->statusHeaderText(f->syncResult().status());
else
return tr("Signed out");
case FolderStatusDelegate::FolderStatusIconRole:
if ( accountConnected ) {
auto theme = Theme::instance();