forked from qt-creator/qt-creator
ShellCommand: Remove exitCode arg from finished() signal
The only 2 handlers were taking it into account and they interpreted the non-zero exit code as a failure, so basically they repeated the work of default exitCodeInterpreter. Change-Id: I9848ef0cf5ca9017f02a02ae59dc09ec426f7626 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1232,12 +1232,10 @@ DiffChunk VcsBaseEditorWidget::diffChunk(QTextCursor cursor) const
|
||||
return rc;
|
||||
}
|
||||
|
||||
void VcsBaseEditorWidget::reportCommandFinished(bool ok, int exitCode, const QVariant &data)
|
||||
void VcsBaseEditorWidget::reportCommandFinished(bool success, const QVariant &data)
|
||||
{
|
||||
Q_UNUSED(exitCode)
|
||||
|
||||
hideProgressIndicator();
|
||||
if (!ok) {
|
||||
if (!success) {
|
||||
textDocument()->setPlainText(tr("Failed to retrieve data."));
|
||||
} else if (data.type() == QVariant::Int) {
|
||||
const int line = data.toInt();
|
||||
|
||||
Reference in New Issue
Block a user