mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
MdEditor: do not set link when copying image
Outlook will treat it as attachment if the clipboard contains both URL and image data.
This commit is contained in:
parent
ca01e26333
commit
f3e4f370dd
@ -1576,10 +1576,9 @@ void VMdEditor::initLinkAndPreviewMenu(QAction *p_before, QMenu *p_menu, const Q
|
|||||||
clipboard->clear();
|
clipboard->clear();
|
||||||
QImage img = VUtils::imageFromFile(imgPath);
|
QImage img = VUtils::imageFromFile(imgPath);
|
||||||
if (!img.isNull()) {
|
if (!img.isNull()) {
|
||||||
VClipboardUtils::setImageAndLinkToClipboard(clipboard,
|
VClipboardUtils::setImageToClipboard(clipboard,
|
||||||
img,
|
img,
|
||||||
imgPath,
|
QClipboard::Clipboard);
|
||||||
QClipboard::Clipboard);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
p_menu->insertAction(p_before, copyImageAct);
|
p_menu->insertAction(p_before, copyImageAct);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user