Commit 4426d4a2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to show original message

parent 395fa922
Pipeline #98765 passed with stage
in 13 minutes and 56 seconds
......@@ -177,6 +177,7 @@ void FollowUpReminderInfoWidget::slotCustomContextMenuRequested(const QPoint &po
if (nbElementSelected > 0) {
QMenu menu(this);
QAction *showMessage = nullptr;
QAction *showOriginalMessage = nullptr;
FollowUpReminderInfoItem *mailItem = nullptr;
if ((nbElementSelected == 1)) {
mailItem = static_cast<FollowUpReminderInfoItem *>(listItems.at(0));
......@@ -184,6 +185,8 @@ void FollowUpReminderInfoWidget::slotCustomContextMenuRequested(const QPoint &po
showMessage = menu.addAction(i18n("Show Message"));
menu.addSeparator();
}
showOriginalMessage = menu.addAction(i18n("Show Original Message"));
menu.addSeparator();
}
QAction *deleteItem = menu.addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18n("Delete"));
QAction *result = menu.exec(QCursor::pos());
......@@ -192,6 +195,8 @@ void FollowUpReminderInfoWidget::slotCustomContextMenuRequested(const QPoint &po
openShowMessage(mailItem->info()->answerMessageItemId());
} else if (result == deleteItem) {
deleteItems(listItems);
} else if (result == showOriginalMessage) {
openShowMessage(mailItem->info()->originalMessageItemId());
}
}
}
......
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