Преглед на файлове

ErrorsDialog tidying.

Don't auto scroll to selected error.
Don't update the whole row just for a cell change.
pull/320/head
Greg Holmes преди 9 години
родител
ревизия
b5a4072f07

+ 1
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/dialogs/errors/ErrorsDialog.java Целия файл

@@ -116,6 +116,7 @@ public class ErrorsDialog extends StandardDialog {
116 116
         splitPane = getSplitPane();
117 117
         table = new PackingTable(tableModel, tableScrollPane);
118 118
         table.setAutoCreateRowSorter(true);
119
+        table.setAutoscrolls(false);
119 120
         table.getModel().addTableModelListener(table);
120 121
         tableScrollPane.setViewportView(table);
121 122
         table.setPreferredScrollableViewportSize(new Dimension(600, 150));

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/dialogs/errors/ErrorsDialogController.java Целия файл

@@ -140,7 +140,7 @@ class ErrorsDialogController implements ErrorsDialogModelListener {
140 140
     public void errorStatusChanged(final DisplayableError error) {
141 141
         UIUtilities.invokeLater(() -> {
142 142
             final int index = tableModel.getIndex(error);
143
-            tableModel.fireTableRowsUpdated(index, index);
143
+            tableModel.fireTableCellUpdated(index, 1);
144 144
             checkEnabledStates();
145 145
         });
146 146
     }

Loading…
Отказ
Запис