Commit 227310cf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Comment code. I didn't find how to show again folder=> comment it for the momebt

parent 673b35a4
......@@ -1027,10 +1027,12 @@ Akonadi::EntityTreeModel *AkonadiCollectionView::entityTreeModel() const
void AkonadiCollectionView::edit_disable()
{
#if 0
Akonadi::Collection col = mCollectionView->currentIndex().data(Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>();
if (col.isValid()) {
mController->setCollectionState(col, Controller::Disabled);
}
#endif
const QVariant var = mCollectionView->currentIndex().data(PersonRole);
if (var.isValid()) {
mController->removePerson(var.value<KPIM::Person>());
......@@ -1067,6 +1069,7 @@ void AkonadiCollectionView::onAction(const QModelIndex &index, int a)
}
break;
case StyledCalendarDelegate::RemoveFromList: {
#if 0
const QVariant var = index.data(PersonRole);
if (var.isValid()) {
mController->removePerson(var.value<KPIM::Person>());
......@@ -1076,6 +1079,7 @@ void AkonadiCollectionView::onAction(const QModelIndex &index, int a)
mController->setCollectionState(col, Controller::Disabled);
}
}
#endif
}
break;
case StyledCalendarDelegate::Enable: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment