Browse Source

fixes issue 2332

tags/0.6.3m1rc1
Gregory Holmes 15 years ago
parent
commit
21d8dc0cc6

+ 6
- 6
src/com/dmdirc/addons/ui_swing/dialogs/prefs/SwingPreferencesDialog.java View File

203
      */
203
      */
204
     @Override
204
     @Override
205
     public void actionPerformed(final ActionEvent actionEvent) {
205
     public void actionPerformed(final ActionEvent actionEvent) {
206
+        if (selected != null) {
207
+            selected.fireCategoryDeselected();
208
+            selected = null;
209
+        }
210
+        
206
         if (getOkButton().equals(actionEvent.getSource())) {
211
         if (getOkButton().equals(actionEvent.getSource())) {
207
             if (tabList.getSelectedIndex() > -1) {
212
             if (tabList.getSelectedIndex() > -1) {
208
                 final PreferencesCategory node = (PreferencesCategory) tabList.getSelectedValue();
213
                 final PreferencesCategory node = (PreferencesCategory) tabList.getSelectedValue();
211
             }
216
             }
212
             saveOptions();
217
             saveOptions();
213
         }
218
         }
214
-
215
-        if (selected != null) {
216
-            selected.fireCategoryDeselected();
217
-            selected = null;
218
-        }
219
-
219
+        
220
         if (manager != null) {
220
         if (manager != null) {
221
             manager.dismiss();
221
             manager.dismiss();
222
         }
222
         }

Loading…
Cancel
Save