Commit 1b0e5d78 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

VCS: Abort previous command for the same editor

Broken by e0c5ff03.

Task-number: QTCREATORBUG-14630
Change-Id: I123d86b45c6fbc05c7f4cfb52c0be705f75abb75
Reviewed-by: default avatarEike Ziller <>
Reviewed-by: default avatarTobias Hunger <>
parent d7c3572a
......@@ -137,6 +137,7 @@ VcsCommand *VcsBaseClientImpl::createCommand(const QString &workingDirectory,
auto cmd = new VcsCommand(workingDirectory, processEnvironment());
if (editor) {
connect(editor, &QObject::destroyed, cmd, &VcsCommand::abort);
connect(cmd, &VcsCommand::finished,
editor, [editor, cmd]() { commandFinished(editor, cmd); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment