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