[Pkg-owncloud-commits] [owncloud-client] 45/218: Don't show a sync success status toolip when signed out

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 17 14:30:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 688aaadb6050c1698519ad65c6d5f4755706c935
Author: Jocelyn Turcotte <jturcotte at woboq.com>
Date:   Sat Aug 29 13:04:10 2015 +0200

    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 d21d25e..e7f5705 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();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list