inspection toolwindow: use read action to check for problems

This commit is contained in:
Dmitry Batkovich
2016-04-14 12:36:31 +03:00
parent 16166c8584
commit f9bd75aabc
@@ -682,7 +682,7 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
}
}
if (!ApplicationManager.getApplication().isUnitTestMode()) {
if (myView == null && !InspectionResultsView.hasProblems(globalTools, this, createContentProvider())) {
if (myView == null && !ReadAction.compute(() -> InspectionResultsView.hasProblems(globalTools, this, createContentProvider())).booleanValue()) {
return;
}
createViewIfNeed();