From ec818a921d50d7c79c8e55ffe9e25a2e4f7c424c Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 19 Dec 2013 06:20:30 +0000 Subject: [PATCH] * fixed title for FormatDialog Window --- .../net/sourceforge/filebot/ui/rename/FormatDialog.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/net/sourceforge/filebot/ui/rename/FormatDialog.java b/source/net/sourceforge/filebot/ui/rename/FormatDialog.java index d30e0599..13cdc8dd 100644 --- a/source/net/sourceforge/filebot/ui/rename/FormatDialog.java +++ b/source/net/sourceforge/filebot/ui/rename/FormatDialog.java @@ -234,8 +234,13 @@ public class FormatDialog extends JDialog { public void setState(Mode mode, MediaBindingBean bindings, boolean locked) { this.mode = mode; - this.setTitle(String.format(locked ? "%s Format - %s ⇔ %s" : "%s Format", mode, bindings.getInfoObject(), bindings.getMediaFile().getName())); - title.setText(this.getTitle()); + if (locked) { + this.setTitle(String.format("%s Format", mode)); + title.setText(String.format("%s Format - %s ⇔ %s", mode, bindings.getInfoObject(), bindings.getMediaFile().getName())); + } else { + this.setTitle(String.format("%s Format", mode)); + title.setText(String.format("%s Format", mode)); + } status.setVisible(false); switchEditModeAction.putValue(Action.NAME, String.format("Switch to %s Format", mode.next()));