From 2ce8ea7269138d93a99cab2f10ddba9f82bd1331 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 12 Jun 2008 17:50:41 +0200 Subject: [PATCH] fix wrong enable state of override content type checkbox fix wrong default content type when selecting a folder --- src/net/pterodactylus/jsite/gui/FileManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/net/pterodactylus/jsite/gui/FileManager.java b/src/net/pterodactylus/jsite/gui/FileManager.java index b919bb6..996d609 100644 --- a/src/net/pterodactylus/jsite/gui/FileManager.java +++ b/src/net/pterodactylus/jsite/gui/FileManager.java @@ -408,6 +408,7 @@ public class FileManager extends JDialog implements I18nable, TreeSelectionListe } } }; + overrideContentTypeDefaultAction.setEnabled(false); contentTypeOverrideAction = new AbstractAction() { /** @@ -845,7 +846,7 @@ public class FileManager extends JDialog implements I18nable, TreeSelectionListe boolean overrideInsertSelected = false; boolean insertOverrideEnabled = false; boolean insertOverrideSelected = false; - String defaultContentType = MimeTypes.DEFAULT_CONTENT_TYPE; + String defaultContentType = ""; boolean overrideContentTypeEnabled = false; boolean overrideContentTypeSelected = false; boolean contentTypeOverrideEnabled = false; -- 2.7.4