Set button to inactive on creation if no temp directory is used.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 22 Dec 2009 17:07:47 +0000 (18:07 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 22 Dec 2009 17:07:47 +0000 (18:07 +0100)
src/de/todesbaum/jsite/gui/PreferencesPage.java

index 22b478a..a5fa43a 100644 (file)
@@ -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);