From b46b4162f2aaf30154a136f428329d829ee445da Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 22 Dec 2009 18:07:47 +0100 Subject: [PATCH] Set button to inactive on creation if no temp directory is used. --- src/de/todesbaum/jsite/gui/PreferencesPage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/de/todesbaum/jsite/gui/PreferencesPage.java b/src/de/todesbaum/jsite/gui/PreferencesPage.java index 22b478a..a5fa43a 100644 --- a/src/de/todesbaum/jsite/gui/PreferencesPage.java +++ b/src/de/todesbaum/jsite/gui/PreferencesPage.java @@ -202,6 +202,7 @@ public class PreferencesPage extends TWizardPage { } else { defaultTempDirectory.setSelected(true); } + chooseTempDirectoryAction.setEnabled(tempDirectory != null); tempDirectoryPanel.add(tempDirectoryTextField, new GridBagConstraints(1, 2, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 6, 0, 0), 0, 0)); JButton chooseButton = new JButton(chooseTempDirectoryAction); -- 2.7.4