From 4a18157bf6eba2f8e0abe126a4bc519826a25fc2 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Sun, 22 Mar 2020 23:03:39 +0300 Subject: [PATCH] [git] pass the correct disposable to message bus connection GitOrigin-RevId: 950ded9cde88369081b15e1c4edce57438e4663e --- plugins/git4idea/src/git4idea/GitUserRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git4idea/src/git4idea/GitUserRegistry.java b/plugins/git4idea/src/git4idea/GitUserRegistry.java index 0eadc2c5d14b..21cc5cf8f0f7 100644 --- a/plugins/git4idea/src/git4idea/GitUserRegistry.java +++ b/plugins/git4idea/src/git4idea/GitUserRegistry.java @@ -38,7 +38,7 @@ public final class GitUserRegistry implements Disposable, VcsListener { } public void activate() { - myProject.getMessageBus().connect().subscribe(ProjectLevelVcsManager.VCS_CONFIGURATION_CHANGED, this); + myProject.getMessageBus().connect(this).subscribe(ProjectLevelVcsManager.VCS_CONFIGURATION_CHANGED, this); directoryMappingChanged(); }