* fix issues reported by Ithiel

@see http://www.filebot.net/forums/viewtopic.php?f=6&t=1192&p=7177#p7177
This commit is contained in:
Reinhard Pointner 2013-12-19 06:32:01 +00:00
parent f0616effc3
commit 6c5730dd7d
2 changed files with 13 additions and 11 deletions

View File

@ -392,18 +392,18 @@ public class RenamePanel extends JComponent {
protected void showFormatEditor(MediaBindingBean lockOnBinding) {
// default to Episode mode
Mode initMode = null;
Mode initMode = Mode.Episode;
if (lockOnBinding == null || lockOnBinding.getInfoObject() instanceof Episode) {
initMode = Mode.Episode;
} else if (lockOnBinding.getInfoObject() instanceof Movie) {
initMode = Mode.Movie;
} else if (lockOnBinding.getInfoObject() instanceof AudioTrack) {
initMode = Mode.Music;
}
// restore previous mode
if (lockOnBinding == null) {
if (lockOnBinding != null) {
if (lockOnBinding.getInfoObject() instanceof Episode) {
initMode = Mode.Episode;
} else if (lockOnBinding.getInfoObject() instanceof Movie) {
initMode = Mode.Movie;
} else if (lockOnBinding.getInfoObject() instanceof AudioTrack) {
initMode = Mode.Music;
}
} else {
// restore previous mode
try {
initMode = Mode.valueOf(persistentLastFormatState.getValue());
} catch (Exception e) {

View File

@ -73,6 +73,7 @@
^Movie$
^Movies$
^Musique$
^mynas$
^new$
^of$
^other$
@ -100,6 +101,7 @@
^Stuff$
^System$
^tank$
^TBR$
^Telechargements$
^temp$
^temporary$