inspection tool window: GlobalInspectionContextImpl must to reset view state

This commit is contained in:
Dmitry Batkovich
2016-03-09 21:16:53 +03:00
parent a096130f8d
commit f2345455dc
@@ -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();