Commit 6282fef8 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Add icon to pending to-do summary pop-up menu

parent a554ada0
Pipeline #199935 passed with stage
in 4 minutes and 50 seconds
......@@ -330,18 +330,17 @@ void TodoSummaryWidget::popupMenu(const QString &uid)
Akonadi::Item item = mCalendar->item(uid);
QMenu popup(this);
QAction *editIt = popup.addAction(i18n("&Edit To-do..."));
QAction *delIt = popup.addAction(i18n("&Delete To-do"));
QAction *doneIt = nullptr;
delIt->setEnabled(mCalendar->hasRight(item, Akonadi::Collection::CanDeleteItem));
QAction *doneIt = nullptr;
if (!todo->isCompleted()) {
doneIt = popup.addAction(i18n("&Mark To-do Completed"));
doneIt->setEnabled(mCalendar->hasRight(item, Akonadi::Collection::CanChangeItem));
// TODO: add icons to the menu actions
const QAction *selectedAction = popup.exec(QCursor::pos());
if (selectedAction == editIt) {
Supports Markdown
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