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

Workaround bug found by David.

Allow to click all the time.
I will investigate why I can scrolltoattachment
parent 117ea8d2
......@@ -994,6 +994,8 @@ bool AttachmentURLHandler::handleClick(const QUrl &url, ViewerPrivate *w) const
if (!node) {
return false;
}
//Laurent workaround until I fix scrolltoattachment
#if 0
const bool inHeader = attachmentIsInHeader(url);
const bool shouldShowDialog = !w->nodeHelper()->isNodeDisplayedEmbedded(node) || !inHeader;
if (inHeader) {
......@@ -1002,6 +1004,9 @@ bool AttachmentURLHandler::handleClick(const QUrl &url, ViewerPrivate *w) const
if (shouldShowDialog) {
w->openAttachment(node, w->nodeHelper()->tempFileUrlFromNode(node));
}
#else
w->openAttachment(node, w->nodeHelper()->tempFileUrlFromNode(node));
#endif
return true;
}
......
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