From c2024b68e6f71c3461f18ff58b1f784c2ce915cc Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Sun, 22 Jul 2012 22:11:45 +0400 Subject: [PATCH] Minor changes. --- .../quickfix/ConfigureKotlinLibraryNotificationProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/jet/plugin/quickfix/ConfigureKotlinLibraryNotificationProvider.java b/idea/src/org/jetbrains/jet/plugin/quickfix/ConfigureKotlinLibraryNotificationProvider.java index 7b56503e042..a74e005148a 100644 --- a/idea/src/org/jetbrains/jet/plugin/quickfix/ConfigureKotlinLibraryNotificationProvider.java +++ b/idea/src/org/jetbrains/jet/plugin/quickfix/ConfigureKotlinLibraryNotificationProvider.java @@ -197,6 +197,9 @@ public class ConfigureKotlinLibraryNotificationProvider implements EditorNotific model.addLibraryEntry(library); model.commit(); } + else { + model.dispose(); + } updateNotifications(); } } @@ -204,7 +207,7 @@ public class ConfigureKotlinLibraryNotificationProvider implements EditorNotific } private void updateNotifications() { - SwingUtilities.invokeLater(new Runnable() { + ApplicationManager.getApplication().invokeLater(new Runnable() { @Override public void run() { EditorNotifications.getInstance(myProject).updateAllNotifications();