mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59: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,9 +1576,8 @@ void VMdEditor::initLinkAndPreviewMenu(QAction *p_before, QMenu *p_menu, const Q
|
||||
clipboard->clear();
|
||||
QImage img = VUtils::imageFromFile(imgPath);
|
||||
if (!img.isNull()) {
|
||||
VClipboardUtils::setImageAndLinkToClipboard(clipboard,
|
||||
VClipboardUtils::setImageToClipboard(clipboard,
|
||||
img,
|
||||
imgPath,
|
||||
QClipboard::Clipboard);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user