Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KTimer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Utilities
KTimer
Commits
8a0f6299
Commit
8a0f6299
authored
May 09, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix porting QProcess
parent
036dc379
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
ktimer.cpp
ktimer.cpp
+9
-1
No files found.
ktimer.cpp
View file @
8a0f6299
...
...
@@ -615,7 +615,15 @@ 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
())
{
proc
->
start
(
d
->
command
,
QStringList
());
#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
,
QStringList
());
#endif
emit
fired
(
this
);
}
if
(
proc
->
state
()
==
QProcess
::
NotRunning
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment