[Backport release-10.x] Fix symlink instance copying on Windows (#4953)

This commit is contained in:
Alexandru Ionut Tripon 2026-02-03 23:39:25 +02:00 committed by GitHub
commit 1ca94829d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -592,7 +592,7 @@ void create_link::runPrivileged(const QString& offset)
}
ExternalLinkFileProcess* linkFileProcess = new ExternalLinkFileProcess(serverName, m_useHardLinks, this);
connect(linkFileProcess, &ExternalLinkFileProcess::processExited, this, [this, gotResults]() { emit finishedPrivileged(gotResults); });
connect(linkFileProcess, &ExternalLinkFileProcess::processExited, this, [this, &gotResults]() { emit finishedPrivileged(gotResults); });
connect(linkFileProcess, &ExternalLinkFileProcess::finished, linkFileProcess, &QObject::deleteLater);
linkFileProcess->start();