diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp
index fe72592fb148e554fd1e9119a5c1b0e4750c0e07..f31cf7419a457fb12ab42dc265fb1d1f0eea8f64 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;
 }