git: use correct component to calculate the modality state

The mainPanel is not added to the component hierarchy at this point.

GitOrigin-RevId: ffe3ab119a8eb711cee4890c9accd1d43f963cb4
This commit is contained in:
Kirill Likhodedov
2019-06-16 07:25:27 +03:00
committed by intellij-monorepo-bot
parent 4186ba1cf7
commit 74bcfb3df0
@@ -44,7 +44,7 @@ internal class ShowDiffWithBranchDialog(val project: Project,
}
mainPanel.setEmptyText("")
val modalityState = ModalityState.stateForComponent(mainPanel)
val modalityState = ModalityState.stateForComponent(rootPane)
ApplicationManager.getApplication().executeOnPooledThread {
val result = loadDiff()