summaryrefslogtreecommitdiff
path: root/platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsConfigurablePanel.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsConfigurablePanel.java')
-rw-r--r--platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsConfigurablePanel.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsConfigurablePanel.java b/platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsConfigurablePanel.java
index 2d6a768a92c2..50ca0941f621 100644
--- a/platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsConfigurablePanel.java
+++ b/platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationsConfigurablePanel.java
@@ -125,6 +125,7 @@ public class NotificationsConfigurablePanel extends JPanel implements Disposable
public NotificationsTable() {
super(new NotificationsTableModel());
+ setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
final TableColumn idColumn = getColumnModel().getColumn(ID_COLUMN);
idColumn.setPreferredWidth(200);
@@ -151,7 +152,7 @@ public class NotificationsConfigurablePanel extends JPanel implements Disposable
displayTypeColumn.setCellRenderer(new ComboBoxTableRenderer<NotificationDisplayType>(NotificationDisplayType.values()) {
@Override
protected void customizeComponent(NotificationDisplayType value, JTable table, boolean isSelected) {
- super.customizeComponent(value, table, isSelected);
+ super.customizeComponent(myDisplayBalloons.isSelected() ? value : NotificationDisplayType.NONE, table, isSelected);
if (!myDisplayBalloons.isSelected() && !isSelected) {
setBackground(UIUtil.getComboBoxDisabledBackground());
setForeground(UIUtil.getComboBoxDisabledForeground());