From: David ‘Bombe’ Roden Date: Tue, 22 Dec 2009 07:16:33 +0000 (+0100) Subject: Propagate temp directory from preferences page to project inserter. X-Git-Tag: 0.8~19 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=650b41ba12056014fd7d939857e09c2b2f9ccc1d;p=jSite.git Propagate temp directory from preferences page to project inserter. --- diff --git a/src/de/todesbaum/jsite/main/Main.java b/src/de/todesbaum/jsite/main/Main.java index 993add2..5c657ba 100644 --- a/src/de/todesbaum/jsite/main/Main.java +++ b/src/de/todesbaum/jsite/main/Main.java @@ -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); } }