Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KSystemStats
Commits
5df8b32f
Commit
5df8b32f
authored
Aug 25, 2021
by
Adriaan de Groot
💬
Browse files
viewer: exit immediately when --quit is used
parent
de4d86ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/kstatsviewer/main.cpp
View file @
5df8b32f
...
...
@@ -70,10 +70,9 @@ int main(int argc, char **argv)
}
else
{
app
.
setShowDetails
(
parser
.
isSet
(
QStringLiteral
(
"details"
)));
app
.
subscribe
(
parser
.
positionalArguments
());
if
(
parser
.
isSet
(
QStringLiteral
(
"quit"
)))
{
QTimer
::
singleShot
(
std
::
chrono
::
seconds
(
1
),
&
app
,
&
QCoreApplication
::
quit
);
if
(
!
parser
.
isSet
(
QStringLiteral
(
"quit"
)))
{
app
.
exec
(
);
}
app
.
exec
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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