mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
Editor: escape spaces while inserting link
This commit is contained in:
parent
37c415f732
commit
e3b9d060f3
@ -1951,8 +1951,7 @@ bool VMdEditor::processUrlFromMimeData(const QMimeData *p_source)
|
||||
VUtils::prependDotIfRelative(ut);
|
||||
}
|
||||
} else {
|
||||
ut = url.isLocalFile() ? url.toString(QUrl::EncodeSpaces)
|
||||
: url.toString();
|
||||
ut = url.toString(QUrl::EncodeSpaces);
|
||||
}
|
||||
|
||||
insertImageLink("", ut);
|
||||
@ -2012,8 +2011,7 @@ bool VMdEditor::processUrlFromMimeData(const QMimeData *p_source)
|
||||
VUtils::prependDotIfRelative(ut);
|
||||
}
|
||||
} else {
|
||||
ut = url.isLocalFile() ? url.toString(QUrl::EncodeSpaces)
|
||||
: url.toString();
|
||||
ut = url.toString(QUrl::EncodeSpaces);
|
||||
}
|
||||
|
||||
VInsertLinkDialog ld(QObject::tr("Insert Link"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user