修复拷贝或移动文件时选择忽略也会改变文件自定义图标及一些属性的问题

This commit is contained in:
Yue-Lan 2023-08-31 17:44:08 +08:00
parent 65892da218
commit 288f4927b1
2 changed files with 16 additions and 10 deletions

View File

@ -495,11 +495,14 @@ fallback_retry:
//copy folder attributes after copy child, support copy readonly files //copy folder attributes after copy child, support copy readonly files
//related bug#163573 //related bug#163573
g_file_copy_attributes(srcFile.get()->get(), if (node->state() == FileNode::Handled) {
destFile.get()->get(), g_file_copy_attributes(srcFile.get()->get(),
GFileCopyFlags(flags), destFile.get()->get(),
nullptr, GFileCopyFlags(flags),
&error); nullptr,
&error);
}
if (error) { if (error) {
qDebug() << __func__ << error->code << error->message; qDebug() << __func__ << error->code << error->message;
} }

View File

@ -1083,11 +1083,14 @@ fallback_retry:
} }
//related bug#172512 //related bug#172512
g_file_copy_attributes(srcFile.get()->get(), if (node->state() == FileNode::Handled) {
destFile.get()->get(), g_file_copy_attributes(srcFile.get()->get(),
GFileCopyFlags(flags), destFile.get()->get(),
nullptr, GFileCopyFlags(flags),
&error); nullptr,
&error);
}
if (error) { if (error) {
qDebug() << __func__ << error->code << error->message; qDebug() << __func__ << error->code << error->message;
} }