forked from qt-creator/qt-creator
ShellCommand: Remove success() signal
Use finished() signal instead. Change-Id: I4e28a2c6d90f40790cb9d19411186bd98402f4bb Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user