Commit f048b087 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 5470c203
......@@ -167,7 +167,8 @@ void KOEventPopupMenu::showIncidencePopup(const Akonadi::Item &item, const QDate
(*it)->setVisible(incidence->type() == KCalCore::Incidence::TypeTodo);
(*it)->setEnabled(hasChangeRights);
}
for (it = mEventOnlyItems.begin(); it != mEventOnlyItems.end(); ++it) {
end = mEventOnlyItems.end();
for (it = mEventOnlyItems.begin(); it != end; ++it) {
(*it)->setVisible(incidence->type() == KCalCore::Incidence::TypeEvent);
(*it)->setEnabled(hasChangeRights);
}
......
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