From 05497edbcf19dd0e9b1de014e93f005aaaeabf3b Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Thu, 27 Oct 2011 15:08:15 +0400 Subject: [PATCH] ExecutableValidator: react only on click in notification --- .../src/com/intellij/execution/ExecutableValidator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/execution/ExecutableValidator.java b/platform/platform-impl/src/com/intellij/execution/ExecutableValidator.java index d7b771b31c97..962b8facf3b9 100644 --- a/platform/platform-impl/src/com/intellij/execution/ExecutableValidator.java +++ b/platform/platform-impl/src/com/intellij/execution/ExecutableValidator.java @@ -104,7 +104,9 @@ public abstract class ExecutableValidator { myNotificationGroup.createNotification("", prepareDescription(), NotificationType.ERROR, new NotificationListener() { public void hyperlinkUpdate(@NotNull Notification notification, @NotNull HyperlinkEvent event) { - showSettingsAndExpireIfFixed(notification); + if (event.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED)) { + showSettingsAndExpireIfFixed(notification); + } } } ).notify(myProject.isDefault() ? null : myProject);