From e06e50418c5880f7db02a0e3e6ed10033ca2f71c Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 31 May 2015 01:13:35 +0000 Subject: [PATCH] * fix file formatter --- source/net/filebot/ui/rename/RenamePanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/ui/rename/RenamePanel.java b/source/net/filebot/ui/rename/RenamePanel.java index c729714f..4329b955 100644 --- a/source/net/filebot/ui/rename/RenamePanel.java +++ b/source/net/filebot/ui/rename/RenamePanel.java @@ -142,7 +142,8 @@ public class RenamePanel extends JComponent { // restore custom music formatter renameModel.useFormatter(File.class, new ExpressionFormatter(persistentFileFormat.getValue(), new FileNameFormat(), File.class)); } catch (Exception e) { - // use default FileInfo formatter as fallback + // make sure to put File formatter at position 3 + renameModel.useFormatter(File.class, new FileNameFormatter(renameModel.preserveExtension())); } finally { // use default filename formatter renameModel.useFormatter(FileInfo.class, new FileNameFormatter(renameModel.preserveExtension()));