diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp index 750e7f96c32..3a0256e5f3f 100644 --- a/src/plugins/vcsbase/vcsbaseclient.cpp +++ b/src/plugins/vcsbase/vcsbaseclient.cpp @@ -137,6 +137,7 @@ VcsCommand *VcsBaseClientImpl::createCommand(const QString &workingDirectory, auto cmd = new VcsCommand(workingDirectory, processEnvironment()); cmd->setDefaultTimeoutS(vcsTimeoutS()); if (editor) { + editor->setCommand(cmd); connect(editor, &QObject::destroyed, cmd, &VcsCommand::abort); connect(cmd, &VcsCommand::finished, editor, [editor, cmd]() { commandFinished(editor, cmd); });