fix wrong enable state of override content type checkbox
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 12 Jun 2008 15:50:41 +0000 (17:50 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 12 Jun 2008 15:50:41 +0000 (17:50 +0200)
fix wrong default content type when selecting a folder

src/net/pterodactylus/jsite/gui/FileManager.java

index b919bb6..996d609 100644 (file)
@@ -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;