Enable “next” button in preferences page.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 20:55:45 +0000 (21:55 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 20:55:45 +0000 (21:55 +0100)
src/de/todesbaum/jsite/main/Main.java

index 5a836f3..993add2 100644 (file)
@@ -439,6 +439,8 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen
         */
        private void optionsPreferences() {
                showPage(PageType.PAGE_PREFERENCES);
+               optionsPreferencesAction.setEnabled(false);
+               wizard.setNextEnabled(true);
        }
 
        /**
@@ -551,6 +553,9 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen
                } else if ("page.project.insert".equals(pageName)) {
                        showPage(PageType.PAGE_PROJECTS);
                        nodeMenu.setEnabled(true);
+               } else if ("page.preferences".equals(pageName)) {
+                       showPage(PageType.PAGE_PROJECTS);
+                       optionsPreferencesAction.setEnabled(true);
                }
        }