From: Jocelyn Turcotte Date: Sat, 29 Aug 2015 11:04:10 +0000 (+0200) Subject: Don't show a sync success status toolip when signed out X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1408^2~137 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=688aaadb6050c1698519ad65c6d5f4755706c935;p=nextcloud-desktop.git Don't show a sync success status toolip when signed out --- 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();