Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Clean up code

parent 06407f78
......@@ -631,19 +631,10 @@ void ViewerPrivate::showAttachmentPopup(KMime::Content *node, const QString &nam
}
}
#if 0 //Reimplement in the future
const bool attachmentInHeader = mViewer->isAttachmentInjectionPoint(globalPos);
const bool hasScrollbar = mViewer->hasVerticalScrollBar();
if (attachmentInHeader && hasScrollbar) {
#else
action = menu.addAction(i18n("Scroll To"));
connect(action, &QAction::triggered, this, [this]() {
slotHandleAttachment(Viewer::ScrollTo);
});
#endif
#if 0
}
#endif
action = menu.addAction(i18n("Scroll To"));
connect(action, &QAction::triggered, this, [this]() {
slotHandleAttachment(Viewer::ScrollTo);
});
action = menu.addAction(QIcon::fromTheme(QStringLiteral("document-save-as")), i18n(
"Save As..."));
......
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