From cfc99c183fc4ebeb5671f5b76057ce6fd59c3ba9 Mon Sep 17 00:00:00 2001 From: "Svetlana.Zemlyanskaya" Date: Mon, 12 Dec 2016 14:46:18 +0100 Subject: [PATCH] WI-34109 Can't open the link in the "PHP interpreter is not configured" popup --- .../intellij/notification/SingletonNotificationManager.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/notification/SingletonNotificationManager.kt b/platform/platform-impl/src/com/intellij/notification/SingletonNotificationManager.kt index 90c6108ec7ee..a0484c858651 100644 --- a/platform/platform-impl/src/com/intellij/notification/SingletonNotificationManager.kt +++ b/platform/platform-impl/src/com/intellij/notification/SingletonNotificationManager.kt @@ -20,7 +20,7 @@ import com.intellij.openapi.wm.ToolWindowManager import java.util.concurrent.atomic.AtomicReference -class SingletonNotificationManager(private val group: NotificationGroup, private val type: NotificationType, private val listener: NotificationListener?) { +class SingletonNotificationManager(private val group: NotificationGroup, private val type: NotificationType, private val defaultListener: NotificationListener?) { private val notification = AtomicReference() private val expiredListener by lazy { @@ -33,11 +33,11 @@ class SingletonNotificationManager(private val group: NotificationGroup, private } fun notify(content: String, project: Project?): Boolean { - return notify("", content, project, listener) + return notify("", content, project, defaultListener) } @JvmOverloads - fun notify(title: String, content: String, project: Project? = null, listener: NotificationListener? = null): Boolean { + fun notify(title: String, content: String, project: Project? = null, listener: NotificationListener? = defaultListener): Boolean { val oldNotification = notification.get() // !oldNotification.isExpired() is not enough - notification could be closed, but not expired if (oldNotification != null) {