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
Utilities
KBackup
Commits
5f9106f4
Commit
5f9106f4
authored
Aug 03, 2022
by
Laurent Montel
Browse files
Use isEmpty
parent
7d247819
Pipeline
#212169
passed with stage
in 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cxx
View file @
5f9106f4
...
...
@@ -122,11 +122,11 @@ int main(int argc, char **argv)
if
(
!
args
.
isEmpty
()
)
profile
=
args
[
0
];
QString
file
=
cmdLine
.
value
(
QStringLiteral
(
"auto"
));
if
(
file
.
length
()
)
const
QString
file
=
cmdLine
.
value
(
QStringLiteral
(
"auto"
));
if
(
!
file
.
isEmpty
()
)
profile
=
file
;
if
(
profile
.
length
()
)
if
(
!
profile
.
isEmpty
()
)
mainWin
->
loadProfile
(
profile
,
true
);
if
(
cmdLine
.
isSet
(
QStringLiteral
(
"forceFull"
))
)
...
...
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