projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89f2a9e
)
Folder Model: The item needs to be selectable for the currenIndex to appear selected
author
Olivier Goffart
<ogoffart@woboq.com>
Mon, 19 Oct 2015 16:53:36 +0000
(18:53 +0200)
committer
Klaas Freitag
<freitag@owncloud.com>
Tue, 27 Oct 2015 16:37:12 +0000
(17:37 +0100)
And we set the current index in AccountSettings::slotLinkActivated
src/gui/folderstatusmodel.cpp
patch
|
blob
|
history
diff --git
a/src/gui/folderstatusmodel.cpp
b/src/gui/folderstatusmodel.cpp
index 8730ab8131af5f59aa164a16b14bbb4a80ddbb45..82029eda5c9af9b76295e677d4a33e9b7319fbe7 100644
(file)
--- 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;
}