diff options
author | hjk <hjk@qt.io> | 2021-08-11 10:02:58 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-08-17 07:16:04 +0000 |
commit | bbde6ac9bf1ac3cee0d87ff526783fd9a50c91a7 (patch) | |
tree | 535c1ddd1958d7ecb616312c6d512ee2911229e4 /src/plugins/updateinfo | |
parent | 2aaa0a2180e7515423934351a9b1c2873987982d (diff) |
VCS: Use more FilePath in ShellCommand and surroundings
Change-Id: Ie8c5fac09b45a54bcbe9a876044b653e7fccede5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/updateinfo')
-rw-r--r-- | src/plugins/updateinfo/updateinfoplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/updateinfo/updateinfoplugin.cpp b/src/plugins/updateinfo/updateinfoplugin.cpp index 87ff5f15707..c6872dcda8b 100644 --- a/src/plugins/updateinfo/updateinfoplugin.cpp +++ b/src/plugins/updateinfo/updateinfoplugin.cpp @@ -131,13 +131,13 @@ void UpdateInfoPlugin::startCheckForUpdates() Utils::Environment env = Utils::Environment::systemEnvironment(); env.set("QT_LOGGING_RULES", "*=false"); - d->m_checkUpdatesCommand = new ShellCommand(QString(), env); + d->m_checkUpdatesCommand = new ShellCommand({}, env); d->m_checkUpdatesCommand->setDisplayName(tr("Checking for Updates")); connect(d->m_checkUpdatesCommand, &ShellCommand::stdOutText, this, &UpdateInfoPlugin::collectCheckForUpdatesOutput); connect(d->m_checkUpdatesCommand, &ShellCommand::finished, this, &UpdateInfoPlugin::checkForUpdatesFinished); d->m_checkUpdatesCommand->addJob({Utils::FilePath::fromString(d->m_maintenanceTool), {"--checkupdates"}}, 60 * 3, // 3 minutes timeout - /*workingDirectory=*/QString(), + /*workingDirectory=*/{}, [](int /*exitCode*/) { return Utils::QtcProcess::FinishedWithSuccess; }); d->m_checkUpdatesCommand->execute(); d->m_progress = d->m_checkUpdatesCommand->futureProgress(); |