forked from qt-creator/qt-creator
VCS: Clear directory cache when availability of VCSes changes
We could have gotten new VCSes or existing ones might have gone, so clear the cache of which VCS manages which directory. Change-Id: I87a1b9c894e2867773ea4df221e463adb14f4ee9 Reviewed-by: Petar Perisin <petar.perisin@gmail.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -549,6 +549,9 @@ void VcsBasePlugin::initializeVcs(Core::IVersionControl *vc)
|
||||
SIGNAL(stateChanged(VcsBase::Internal::State,Core::IVersionControl*)),
|
||||
this,
|
||||
SLOT(slotStateChanged(VcsBase::Internal::State,Core::IVersionControl*)));
|
||||
// VCSes might have become (un-)available, so clear the VCS directory cache
|
||||
connect(vc, SIGNAL(configurationChanged()),
|
||||
Core::ICore::vcsManager(), SLOT(clearVersionControlCache()));
|
||||
}
|
||||
|
||||
void VcsBasePlugin::extensionsInitialized()
|
||||
|
||||
Reference in New Issue
Block a user