ShellCommand: Remove success() signal

Use finished() signal instead.

Change-Id: I4e28a2c6d90f40790cb9d19411186bd98402f4bb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-07-29 12:48:29 +02:00
parent 79aaf155b7
commit e6e4bc8dad
5 changed files with 41 additions and 26 deletions

View File

@@ -279,12 +279,10 @@ void ShellCommand::run(QFutureInterface<void> &future)
}
emit finished(lastExecSuccess, cookie());
if (lastExecSuccess) {
emit success(cookie());
if (lastExecSuccess)
future.setProgressValue(future.progressMaximum());
} else {
else
future.cancel(); // sets the progress indicator red
}
}
if (d->m_progressParser)