diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp index 09dce770209..8b8e93f3e76 100644 --- a/src/plugins/vcsbase/vcsbaseeditor.cpp +++ b/src/plugins/vcsbase/vcsbaseeditor.cpp @@ -1363,7 +1363,7 @@ void VcsBaseEditorWidget::setCommand(VcsCommand *command) if (d->m_command) { d->m_progressIndicator = new Utils::ProgressIndicator(Utils::ProgressIndicator::Large); d->m_progressIndicator->attachToWidget(this); - connect(d->m_command, &VcsCommand::finished, + connect(d->m_command.data(), &VcsCommand::finished, this, &VcsBaseEditorWidget::hideProgressIndicator); QTimer::singleShot(100, this, SLOT(showProgressIndicator())); }