Folder Model: The item needs to be selectable for the currenIndex to appear selected

And we set the current index in AccountSettings::slotLinkActivated
This commit is contained in:
Olivier Goffart 2015-10-19 18:53:36 +02:00 committed by Klaas Freitag
parent 89f2a9e6dc
commit f1d48a9356

View 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;
}