Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 0c31eca8 authored by Maik Qualmann's avatar Maik Qualmann

restore modification time only when copy file

parent 52bce33c
Pipeline #26012 failed with stage
in 60 minutes
......@@ -105,6 +105,11 @@ void FCTask::run()
deleteTargetFile(dest.toLocalFile());
ok = QFile::copy(d->srcUrl.toLocalFile(),
dest.toLocalFile());
if (ok)
{
DFileOperations::copyModificationTime(d->srcUrl.toLocalFile(),
dest.toLocalFile());
}
}
}
else if ((d->settings.behavior == FCContainer::FullSymLink) ||
......@@ -132,12 +137,6 @@ void FCTask::run()
}
}
if (ok && (d->settings.behavior == FCContainer::CopyFile))
{
DFileOperations::copyModificationTime(d->srcUrl.toLocalFile(),
dest.toLocalFile());
}
if (ok)
{
emit signalUrlProcessed(d->srcUrl, dest);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment