Commit 2d9c32cb authored by Laurent Montel's avatar Laurent Montel 😁

Don't return MailWebView

parent 61733b07
......@@ -792,7 +792,7 @@ bool HtmlAnchorHandler::handleClick(const QUrl &url, ViewerPrivate *w) const
return false;
}
w->mailViewer()->scrollToAnchor(url.fragment());
w->scrollToAnchor(url.fragment());
return true;
}
}
......
......@@ -446,9 +446,9 @@ void ViewerPrivate::editAttachment(KMime::Content *node, bool showWarning)
job->canDeleteJob();
}
MailWebView *ViewerPrivate::mailViewer() const
void ViewerPrivate::scrollToAnchor(const QString &anchor)
{
return mViewer;
mViewer->scrollToAnchor(anchor);
}
void ViewerPrivate::createOpenWithMenu(QMenu *topMenu, const QString &contentTypeStr, bool fromCurrentContent)
......
......@@ -213,9 +213,7 @@ public:
cancelled the editing, true in all other cases! */
void editAttachment(KMime::Content *node, bool showWarning = true);
/** Access to the MailWebView used for the viewer. Use with
care! */
MailWebView *mailViewer() const;
void scrollToAnchor(const QString &anchor);
void showAttachmentPopup(KMime::Content *node, const QString &name, const QPoint &p);
......
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