diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp index 100c230be43..ad4b1dde3be 100644 --- a/src/plugins/vcsbase/vcsbaseplugin.cpp +++ b/src/plugins/vcsbase/vcsbaseplugin.cpp @@ -30,6 +30,7 @@ #include #include #include +#include using namespace Core; using namespace Utils; @@ -308,8 +309,10 @@ void StateListener::slotStateChanged() state.clearPatchFile(); // Need a repository to patch qCDebug(stateLog).noquote() << "VC:" << (vc ? vc->displayName() : QString("None")) << state; - EditorManager::updateWindowTitles(); - emit stateChanged(state, vc); + QTimer::singleShot(500, this, [this, state, vc] { + EditorManager::updateWindowTitles(); + emit stateChanged(state, vc); + }); } } // namespace Internal