Folder Model: The item needs to be selectable for the currenIndex to appear selected
authorOlivier Goffart <ogoffart@woboq.com>
Mon, 19 Oct 2015 16:53:36 +0000 (18:53 +0200)
committerKlaas 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

index 8730ab8131af5f59aa164a16b14bbb4a80ddbb45..82029eda5c9af9b76295e677d4a33e9b7319fbe7 100644 (file)
@@ -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;
 }