Commit 625a5d91 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We depend against qt5.15

parent 7004906e
......@@ -612,15 +612,11 @@ void KTimerJob::fire()
d->processes.append( proc );
connect(proc, static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), this, &KTimerJob::processExited);
if (!d->command.simplified ().isEmpty()) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
QStringList splitArguments = QProcess::splitCommand(d->command);
if (!splitArguments.isEmpty()) {
const QString prog = splitArguments.takeFirst();
proc->start(prog, splitArguments);
}
#else
proc->start(d->command);
#endif
Q_EMIT fired( this );
}
if(proc->state() == QProcess::NotRunning) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment