[Pkg-owncloud-commits] [owncloud-client] 163/484: Folder Model: The item needs to be selectable for the currenIndex to appear selected
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:33 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 f1d48a9356945066a6fb6256894d42a219ad893e
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Mon Oct 19 18:53:36 2015 +0200
Folder Model: The item needs to be selectable for the currenIndex to appear selected
And we set the current index in AccountSettings::slotLinkActivated
---
src/gui/folderstatusmodel.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index 8730ab8..82029ed 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -99,7 +99,7 @@ Qt::ItemFlags FolderStatusModel::flags ( const QModelIndex &index ) const
case RootFolder:
return Qt::ItemIsEnabled;
case SubFolder:
- return Qt::ItemIsEnabled | Qt::ItemIsUserCheckable;
+ return Qt::ItemIsEnabled | Qt::ItemIsUserCheckable | Qt::ItemIsSelectable;
}
return 0;
}
--
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