diff --git a/plugins/git4idea/src/git4idea/config/GitVcsPanel.java b/plugins/git4idea/src/git4idea/config/GitVcsPanel.java index 8cff73be669b..f03b9247b4e4 100644 --- a/plugins/git4idea/src/git4idea/config/GitVcsPanel.java +++ b/plugins/git4idea/src/git4idea/config/GitVcsPanel.java @@ -91,17 +91,17 @@ public class GitVcsPanel { try { version = GitVersion.identifyVersion(executable); } catch (Exception e) { - Messages.showErrorDialog(myProject, e.getMessage(), GitBundle.getString("find.git.error.title")); + Messages.showErrorDialog(myRootPanel, e.getMessage(), GitBundle.getString("find.git.error.title")); return; } if (version.isSupported()) { - Messages.showInfoMessage(myProject, + Messages.showInfoMessage(myRootPanel, String.format("%s
Git version is %s", GitBundle.getString("find.git.success.title"), version.toString()), GitBundle.getString("find.git.success.title")); } else { - Messages.showWarningDialog(myProject, GitBundle.message("find.git.unsupported.message", version.toString(), GitVersion.MIN), + Messages.showWarningDialog(myRootPanel, GitBundle.message("find.git.unsupported.message", version.toString(), GitVersion.MIN), GitBundle.getString("find.git.success.title")); } }