Quellcode durchsuchen

fixes external prefs categories not receiving save events, fixed some padding issues with the category panel, fixes issue 2134

tags/0.6.3m1rc1
Gregory Holmes vor 15 Jahren
Ursprung
Commit
60692945e9

+ 1
- 1
src/com/dmdirc/addons/ui_swing/dialogs/prefs/CategoryPanel.java Datei anzeigen

@@ -101,7 +101,7 @@ public class CategoryPanel extends JPanel {
101 101
      */
102 102
     public CategoryPanel(final Window parent,
103 103
             final PreferencesCategory category) {
104
-        super(new MigLayout("fillx, wrap"));
104
+        super(new MigLayout("fillx, wrap, ins 0"));
105 105
         this.parent = parent;
106 106
 
107 107
         loading = new JPanel(new MigLayout("fillx"));

+ 3
- 3
src/com/dmdirc/addons/ui_swing/dialogs/prefs/SwingPreferencesDialog.java Datei anzeigen

@@ -150,9 +150,9 @@ public final class SwingPreferencesDialog extends StandardDialog implements
150 150
         getOkButton().addActionListener(this);
151 151
         getCancelButton().addActionListener(this);
152 152
 
153
-        setLayout(new MigLayout("fillx, wmax 650, hmin 600, hmax 600, pack"));
153
+        setLayout(new MigLayout("fillx, wmax 650, hmin 600, hmax 600, pack, debug"));
154 154
         add(tabList, "w 150!, growy, spany 3");
155
-        add(mainPanel, "wrap, w 480!, pushy");
155
+        add(mainPanel, "wrap, w 480!, pushy, growy");
156 156
         add(getLeftButton(), "span, split, right");
157 157
         add(getRightButton(), "right");
158 158
     }
@@ -242,7 +242,7 @@ public final class SwingPreferencesDialog extends StandardDialog implements
242 242
         final DefaultListModel model = (DefaultListModel) tabList.getModel();
243 243
         int indexToSelect = 1;
244 244
         int size = model.getSize();
245
-        for (int i = 0; i <= size; i++) {
245
+        for (int i = 0; i < size; i++) {
246 246
             final PreferencesCategory category =
247 247
                     (PreferencesCategory) model.get(i);
248 248
             if (oldCategoryPath.equals(category.getPath())) {

+ 2
- 0
src/com/dmdirc/config/prefs/PreferencesManager.java Datei anzeigen

@@ -114,6 +114,8 @@ public class PreferencesManager {
114 114
      * Dismisses all the settings in this manager.
115 115
      */
116 116
     public void dismiss() {
117
+        fireSaveListeners();
118
+        
117 119
         for (PreferencesCategory category : categories) {
118 120
             category.dismiss();
119 121
         }

Laden…
Abbrechen
Speichern