From b2fb7415c51ebafd0cc70c64d0b4ad53037b37fc Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Wed, 4 Apr 2012 14:59:29 +0400 Subject: [PATCH] IDEA-84045 GitVcsPanel. Display Messages better by specifying correct parent component --- plugins/git4idea/src/git4idea/config/GitVcsPanel.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")); } }