From 688aaadb6050c1698519ad65c6d5f4755706c935 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Sat, 29 Aug 2015 13:04:10 +0200 Subject: [PATCH] Don't show a sync success status toolip when signed out --- src/gui/folderstatusmodel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index d21d25e3b..e7f570557 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -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(); -- 2.30.2