From 302ae45d7205f676159311251512ba2ccae11bf7 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 19 Apr 2018 12:00:44 +0200 Subject: [PATCH] [ui] drops exception attachment locking in internal mode (IDEA-188535) --- .../src/com/intellij/diagnostic/IdeErrorsDialog.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/diagnostic/IdeErrorsDialog.java b/platform/platform-impl/src/com/intellij/diagnostic/IdeErrorsDialog.java index a1a3f744db8b..41b9462d036a 100644 --- a/platform/platform-impl/src/com/intellij/diagnostic/IdeErrorsDialog.java +++ b/platform/platform-impl/src/com/intellij/diagnostic/IdeErrorsDialog.java @@ -195,7 +195,7 @@ public class IdeErrorsDialog extends DialogWrapper implements MessagePoolListene JBLabel attachmentsLabel = new JBLabel(DiagnosticBundle.message("diagnostic.error.report.attachments.label")); - myAttachmentsList = new AttachmentsList(myInternalMode); + myAttachmentsList = new AttachmentsList(); myAttachmentsList.addListSelectionListener(e -> { int index = myAttachmentsList.getSelectedIndex(); if (index < 0) { @@ -585,19 +585,13 @@ public class IdeErrorsDialog extends DialogWrapper implements MessagePoolListene /* UI components */ private static class AttachmentsList extends CheckBoxList { - private final boolean myInternalMode; - - private AttachmentsList(boolean internalMode) { - myInternalMode = internalMode; - } - private void addItem(String item, boolean selected) { super.addItem(item, item + " ", selected); } @Override protected boolean isEnabled(int index) { - return !myInternalMode && index > 0; + return index > 0; } }