Browse Source

MdEditor: do not set link when copying image

Outlook will treat it as attachment if the clipboard contains both URL
and image data.
Le Tan 7 years ago
parent
commit
f3e4f370dd
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/vmdeditor.cpp

+ 3 - 4
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);