From f3e4f370dd78c65a81193886cf1e083cb9b88646 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Mon, 10 Sep 2018 20:26:29 +0800 Subject: [PATCH] MdEditor: do not set link when copying image Outlook will treat it as attachment if the clipboard contains both URL and image data. --- src/vmdeditor.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/vmdeditor.cpp b/src/vmdeditor.cpp index 18c1b139..5e71c5c3 100644 --- a/src/vmdeditor.cpp +++ b/src/vmdeditor.cpp @@ -1576,10 +1576,9 @@ void VMdEditor::initLinkAndPreviewMenu(QAction *p_before, QMenu *p_menu, const Q clipboard->clear(); QImage img = VUtils::imageFromFile(imgPath); if (!img.isNull()) { - VClipboardUtils::setImageAndLinkToClipboard(clipboard, - img, - imgPath, - QClipboard::Clipboard); + VClipboardUtils::setImageToClipboard(clipboard, + img, + QClipboard::Clipboard); } }); p_menu->insertAction(p_before, copyImageAct);