mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Simplify code
This commit is contained in:
parent
7032b03748
commit
90772a01e7
@ -607,13 +607,11 @@ QString SystemcallPrivate::exitStatusMessage() const
|
||||
|
||||
int SystemcallPrivate::exitCode()
|
||||
{
|
||||
if (!process_)
|
||||
return -1;
|
||||
|
||||
// From Qt's documentation, in regards to QProcess::exitCode(),
|
||||
// "This value is not valid unless exitStatus() returns NormalExit"
|
||||
if (process_->exitStatus() != QProcess::NormalExit)
|
||||
if (!process_ || process_->exitStatus() != QProcess::NormalExit)
|
||||
return -1;
|
||||
|
||||
return process_->exitCode();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user