Enable and disable preferences action when starting the insert.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 22 Dec 2009 20:56:49 +0000 (21:56 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 22 Dec 2009 20:56:49 +0000 (21:56 +0100)
src/de/todesbaum/jsite/main/Main.java

index 2efe017..263c346 100644 (file)
@@ -562,9 +562,11 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen
                        projectInsertPage.setTempDirectory(tempDirectory);
                        projectInsertPage.startInsert();
                        nodeMenu.setEnabled(false);
+                       optionsPreferencesAction.setEnabled(false);
                } else if ("page.project.insert".equals(pageName)) {
                        showPage(PageType.PAGE_PROJECTS);
                        nodeMenu.setEnabled(true);
+                       optionsPreferencesAction.setEnabled(true);
                } else if ("page.preferences".equals(pageName)) {
                        showPage(PageType.PAGE_PROJECTS);
                        optionsPreferencesAction.setEnabled(true);