mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Fix isntall component, use copy of filename as the referenced var can be out of scope already
This commit is contained in:
@@ -161,9 +161,12 @@ namespace BlackGui
|
||||
QStringList stdOutAndError;
|
||||
if (CCompressUtils::zip7Uncompress(destFile.absoluteFilePath(), xSwiftBusDirectory, true, &stdOutAndError))
|
||||
{
|
||||
// capture values by copy!
|
||||
const CStatusMessage msg = CStatusMessage(this, CLogCategory::validation()).info("Uncompressed xSwiftBus in '%1'") << xSwiftBusDirectory;
|
||||
this->showOverlayMessagesWithConfirmation(msg, false, "Delete downloaded file?", [ & ]
|
||||
this->showOverlayMessagesWithConfirmation(msg, false, "Delete downloaded file?", [ = ]
|
||||
{
|
||||
QFile downloadFile(downloadFileName);
|
||||
if (!downloadFile.exists()) { return; } // removed in meantime
|
||||
const bool removed = downloadFile.remove();
|
||||
Q_UNUSED(removed);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user