From 163625f56a32f0fd0cf257b489a59a21f0659678 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Tue, 19 Jul 2022 13:29:39 +0200 Subject: [PATCH] VcsCommandDecorator: Fix call to abort() Call ShellCommand::abort() instead of std::abort(). Amends a640a6ae8cb1b80f835655a0def3701f3e133038 Change-Id: I3e71c1e919ef05100934011d1f9a80961249cddf Reviewed-by: Orgad Shaneh --- src/plugins/vcsbase/vcsbaseclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp index 591da5a1226..c695eb2cb3e 100644 --- a/src/plugins/vcsbase/vcsbaseclient.cpp +++ b/src/plugins/vcsbase/vcsbaseclient.cpp @@ -118,9 +118,9 @@ VcsCommandDecorator::VcsCommandDecorator(ShellCommand *command) connect(m_command, &ShellCommand::executedAsync, this, &VcsCommandDecorator::addTask); const auto connection = connect(m_command, &ShellCommand::runCommandFinished, this, &VcsCommandDecorator::postRunCommand); - connect(ICore::instance(), &ICore::coreAboutToClose, this, [connection] { + connect(ICore::instance(), &ICore::coreAboutToClose, this, [this, connection] { disconnect(connection); - abort(); + m_command->abort(); });} void VcsCommandDecorator::addTask(const QFuture &future)