Propagate temp directory from preferences page to project inserter.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 22 Dec 2009 07:16:33 +0000 (08:16 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 22 Dec 2009 07:16:33 +0000 (08:16 +0100)
src/de/todesbaum/jsite/main/Main.java

index 993add2..5c657ba 100644 (file)
@@ -556,6 +556,8 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen
                } else if ("page.preferences".equals(pageName)) {
                        showPage(PageType.PAGE_PROJECTS);
                        optionsPreferencesAction.setEnabled(true);
+                       String tempDirectory = ((PreferencesPage) pages.get(PageType.PAGE_PREFERENCES)).getTempDirectory();
+                       ((ProjectInsertPage) pages.get(PageType.PAGE_INSERT_PROJECT)).setTempDirectory(tempDirectory);
                }
        }