From f2345455dc08643efc27f3c03bd20cc80baaed23 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Wed, 9 Mar 2016 21:14:12 +0300 Subject: [PATCH] inspection tool window: GlobalInspectionContextImpl must to reset view state --- .../codeInspection/ex/GlobalInspectionContextImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java index 74dd8f344560..92c623d6b459 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java @@ -779,7 +779,15 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp @Override public void close(boolean noSuspisiousCodeFound) { - if (!noSuspisiousCodeFound && (myView == null || myView.isRerun())) return; + if (!noSuspisiousCodeFound) { + if (myView.isRerun()) { + myViewClosed = true; + myView = null; + } + if (myView == null) { + return; + } + } AnalysisUIOptions.getInstance(getProject()).save(myUIOptions); if (myContent != null) { final ContentManager contentManager = getContentManager();