Commit bc0deb29 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix cppcheck warning

parent 50adc02a
Pipeline #105709 passed with stage
in 1 minute and 5 seconds
......@@ -426,8 +426,8 @@ public:
if (itemCount == 1) {
const Akonadi::Item item = mGenericManager->selectedItems().at(0);
if (item.isValid() && item.hasPayload<KCalendarCore::Todo::Ptr>()) {
if (QAction *act = mActions.value(StandardCalendarActionManager::CreateSubTodo)) {
act->setEnabled(hasWritableCollection(KCalendarCore::Todo::todoMimeType()));
if (QAction *actSubTodo = mActions.value(StandardCalendarActionManager::CreateSubTodo)) {
actSubTodo->setEnabled(hasWritableCollection(KCalendarCore::Todo::todoMimeType()));
}
}
}
......
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