From: David ‘Bombe’ Roden Date: Thu, 12 Jun 2008 15:50:41 +0000 (+0200) Subject: fix wrong enable state of override content type checkbox X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2ce8ea7269138d93a99cab2f10ddba9f82bd1331;p=jSite2.git fix wrong enable state of override content type checkbox fix wrong default content type when selecting a folder --- 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;