mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +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 << commandList.join(QLatin1String( ";" ));
|
||||
|
||||
QProcess process;
|
||||
process.startDetached(QLatin1String( "konsole" ), parameters);
|
||||
QProcess::startDetached(QLatin1String( "konsole" ), parameters);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -115,8 +115,7 @@ ErrorWidget::~ErrorWidget()
|
|||
|
||||
void ErrorWidget::launchKGet()
|
||||
{
|
||||
QProcess kgetProcess;
|
||||
kgetProcess.startDetached("kget");
|
||||
QProcess::startDetached("kget");
|
||||
checkKGetStatus();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue