From 46124c7fa63ff9c016359dad38446795a42753e2 Mon Sep 17 00:00:00 2001 From: Konstantin Aleev Date: Sat, 10 Mar 2018 19:54:47 +0300 Subject: [PATCH] IDEA-184007 RunDashboard: fix restoring debugger tab layout --- .../intellij/execution/dashboard/RunDashboardContent.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/execution/dashboard/RunDashboardContent.java b/platform/lang-impl/src/com/intellij/execution/dashboard/RunDashboardContent.java index 9b44e58a8bd4..402ced983406 100644 --- a/platform/lang-impl/src/com/intellij/execution/dashboard/RunDashboardContent.java +++ b/platform/lang-impl/src/com/intellij/execution/dashboard/RunDashboardContent.java @@ -275,6 +275,11 @@ public class RunDashboardContent extends JPanel implements TreeContent, Disposab } private void onSelectionChanged() { + AbstractTreeUi treeUi = myBuilder.getUi(); + if (treeUi == null || treeUi.hasPendingWork()) { + // Do not change update details part and its content manger until all pending tree update requests are not finished. + return; + } Set nodes = myBuilder.getSelectedElements(AbstractTreeNode.class); if (nodes.size() != 1) { showMessagePanel(ExecutionBundle.message("run.dashboard.empty.selection.message"));