[Pkg-owncloud-commits] [owncloud-client] 409/470: AccountSettings: context menu: don't rely on the alias

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu May 12 16:25:33 UTC 2016


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 d0af3ede051634a53963fc1cb7df13d3b65c08cc
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Wed Apr 27 11:21:58 2016 +0200

    AccountSettings: context menu: don't rely on the alias
    
    Don't rely on the alias to know weather we shuld show a context menu or not.
    Use the classify function to know if it's a root folder instead
---
 src/gui/accountsettings.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp
index 8f7f3a3..727d3bd 100644
--- a/src/gui/accountsettings.cpp
+++ b/src/gui/accountsettings.cpp
@@ -197,8 +197,7 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)
         return;
     }
 
-    QString alias = _model->data( index, FolderStatusDelegate::FolderAliasRole ).toString();
-    if (alias.isEmpty()) {
+    if (_model->classify(index) != FolderStatusModel::RootFolder) {
         return;
     }
 

-- 
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