Преглед изворни кода

Fix broken list selection model implementation.

Change-Id: I70c7ae244e5a70422dde66cef1fc9f99895fe227
Fixes-Issue: CLIENT-515
Reviewed-on: http://gerrit.dmdirc.com/3630
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
changes/30/3630/2
Greg Holmes пре 10 година
родитељ
комит
24fa126c09

+ 2
- 1
src/com/dmdirc/addons/ui_swing/components/vetoable/VetoableListSelectionModel.java Прегледај датотеку

@@ -90,9 +90,10 @@ public class VetoableListSelectionModel implements ListSelectionModel {
90 90
                 new PropertyChangeEvent(this, "selection", selection, index0))) {
91 91
             return;
92 92
         }
93
+        final int oldSelection = selection;
93 94
         selection = index0;
94 95
         listeners.getCallable(ListSelectionListener.class).valueChanged(new ListSelectionEvent(this,
95
-                selection, selection, valueAdjusting));
96
+                oldSelection, selection, valueAdjusting));
96 97
     }
97 98
 
98 99
     @Override

Loading…
Откажи
Сачувај