Fix symlink instance copying on Windows (#4947)

This commit is contained in:
Seth Flynn 2026-02-03 02:45:11 +00:00 committed by GitHub
commit ed7101ba1e
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();