[libcalamares] Keep jobIndex in-sync with the jobs
- Never skip updating the jobIndex, because it is used in emitProgress() to find which job to ask for status.
This commit is contained in:
parent
1ec7251275
commit
112895fddc
@ -69,6 +69,7 @@ public:
|
||||
if ( anyFailed && !job->isEmergency() )
|
||||
{
|
||||
cDebug() << "Skipping non-emergency job" << job->prettyName();
|
||||
++m_jobIndex;
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -83,10 +84,8 @@ public:
|
||||
message = result.message();
|
||||
details = result.details();
|
||||
}
|
||||
if ( !anyFailed )
|
||||
{
|
||||
++m_jobIndex;
|
||||
}
|
||||
emitProgress( 1.0 );
|
||||
++m_jobIndex;
|
||||
}
|
||||
if ( anyFailed )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user