mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
generic: use static QProcess::startDetached() method instead of creating objects
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b03dc82455
commit
ee21f0012a
2 changed files with 2 additions and 4 deletions
|
@ -133,8 +133,7 @@ void TasksWidget::runTaskNow() const {
|
||||||
parameters << QLatin1String( "-e" ) << QLatin1String( "bash" ) << QLatin1String( "-c" );
|
parameters << QLatin1String( "-e" ) << QLatin1String( "bash" ) << QLatin1String( "-c" );
|
||||||
parameters << commandList.join(QLatin1String( ";" ));
|
parameters << commandList.join(QLatin1String( ";" ));
|
||||||
|
|
||||||
QProcess process;
|
QProcess::startDetached(QLatin1String( "konsole" ), parameters);
|
||||||
process.startDetached(QLatin1String( "konsole" ), parameters);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -115,8 +115,7 @@ ErrorWidget::~ErrorWidget()
|
||||||
|
|
||||||
void ErrorWidget::launchKGet()
|
void ErrorWidget::launchKGet()
|
||||||
{
|
{
|
||||||
QProcess kgetProcess;
|
QProcess::startDetached("kget");
|
||||||
kgetProcess.startDetached("kget");
|
|
||||||
checkKGetStatus();
|
checkKGetStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue