mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
fix crash when exporting external file
This commit is contained in:
parent
1b8eb77eab
commit
319da24989
@ -80,6 +80,9 @@ void Exporter::exportAttachments(Node *p_node,
|
||||
const QString &p_outputFolder,
|
||||
const QString &p_destFilePath)
|
||||
{
|
||||
if (!p_node) {
|
||||
return;
|
||||
}
|
||||
const auto &attachmentFolder = p_node->getAttachmentFolder();
|
||||
if (!attachmentFolder.isEmpty()) {
|
||||
auto relativePath = PathUtils::relativePath(PathUtils::parentDirPath(p_srcFilePath),
|
||||
|
Loading…
x
Reference in New Issue
Block a user