From 1b53f75d62301c55ace69a536f0cbbecf0cb6fa7 Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@digia.com> Date: Mon, 14 Oct 2013 12:52:13 +0200 Subject: [PATCH] VcsBase: Abort commands when closing VcsBaseEditorWidget This prevents the crashes when the command signals a state change after the managing editor was closed. Task-number: QTCREATORBUG-10343 Change-Id: I57e34c49d5ef8b5693bec6ac0ebc9d87afa99dc9 Reviewed-by: Orgad Shaneh <orgads@gmail.com> --- src/plugins/vcsbase/vcsbaseeditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp index fe72592fb14..f31cf7419a4 100644 --- a/src/plugins/vcsbase/vcsbaseeditor.cpp +++ b/src/plugins/vcsbase/vcsbaseeditor.cpp @@ -724,6 +724,7 @@ void VcsBaseEditorWidget::init() VcsBaseEditorWidget::~VcsBaseEditorWidget() { + setCommand(0); // abort all running commands delete d; } -- GitLab