generic: use static QProcess::startDetached() method instead of creating objects

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-09-22 06:16:15 +03:00
parent b03dc82455
commit ee21f0012a
2 changed files with 2 additions and 4 deletions

View file

@ -133,8 +133,7 @@ void TasksWidget::runTaskNow() const {
parameters << QLatin1String( "-e" ) << QLatin1String( "bash" ) << QLatin1String( "-c" );
parameters << commandList.join(QLatin1String( ";" ));
QProcess process;
process.startDetached(QLatin1String( "konsole" ), parameters);
QProcess::startDetached(QLatin1String( "konsole" ), parameters);
}

View file

@ -115,8 +115,7 @@ ErrorWidget::~ErrorWidget()
void ErrorWidget::launchKGet()
{
QProcess kgetProcess;
kgetProcess.startDetached("kget");
QProcess::startDetached("kget");
checkKGetStatus();
}