mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Replace QStringRef with QStringView
This commit is contained in:
parent
27baa55443
commit
399d3ad85a
26 changed files with 82 additions and 90 deletions
|
@ -2184,8 +2184,9 @@ void MainWindow::pythonDownloadFinished(const Net::DownloadResult &result)
|
|||
QProcess installer;
|
||||
qDebug("Launching Python installer in passive mode...");
|
||||
|
||||
QFile::rename(result.filePath, result.filePath + ".exe");
|
||||
installer.start('"' + Utils::Fs::toNativePath(result.filePath) + ".exe\" /passive");
|
||||
const QString exePath = result.filePath + QLatin1String(".exe");
|
||||
QFile::rename(result.filePath, exePath);
|
||||
installer.start(Utils::Fs::toNativePath(exePath), {"/passive"});
|
||||
|
||||
// Wait for setup to complete
|
||||
installer.waitForFinished(10 * 60 * 1000);
|
||||
|
@ -2195,7 +2196,7 @@ void MainWindow::pythonDownloadFinished(const Net::DownloadResult &result)
|
|||
qDebug("Setup should be complete!");
|
||||
|
||||
// Delete temp file
|
||||
Utils::Fs::forceRemove(result.filePath + ".exe");
|
||||
Utils::Fs::forceRemove(exePath);
|
||||
|
||||
// Reload search engine
|
||||
if (Utils::ForeignApps::pythonInfo().isSupportedVersion())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue