summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/vcsbase')
-rw-r--r--src/plugins/vcsbase/vcscommand.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/vcsbase/vcscommand.cpp b/src/plugins/vcsbase/vcscommand.cpp
index cf10769711..26db328083 100644
--- a/src/plugins/vcsbase/vcscommand.cpp
+++ b/src/plugins/vcsbase/vcscommand.cpp
@@ -27,6 +27,7 @@
#include "vcsbaseplugin.h"
#include "vcsoutputwindow.h"
+#include <coreplugin/documentmanager.h>
#include <coreplugin/vcsmanager.h>
#include <utils/synchronousprocess.h>
@@ -56,6 +57,14 @@ VcsCommand::VcsCommand(const QString &workingDirectory,
return proxy;
});
+ connect(this, &VcsCommand::started, this, [this] {
+ if (flags() & ExpectRepoChanges)
+ Core::DocumentManager::setAutoReloadPostponed(true);
+ });
+ connect(this, &VcsCommand::finished, this, [this] {
+ if (flags() & ExpectRepoChanges)
+ Core::DocumentManager::setAutoReloadPostponed(false);
+ });
}
const QProcessEnvironment VcsCommand::processEnvironment() const