From a7104877bb0b71b0f6ea87954dfa7b17cde74baf Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 28 Apr 2012 18:13:22 +0000 Subject: [PATCH] * display only relevant info in dialog title --- .../net/sourceforge/filebot/ui/rename/MovieHashMatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java b/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java index 7bfdb9d0..c57f8b20 100644 --- a/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java +++ b/source/net/sourceforge/filebot/ui/rename/MovieHashMatcher.java @@ -228,7 +228,7 @@ class MovieHashMatcher implements AutoCompleteMatcher { String input = null; synchronized (this) { - input = showInputDialog("Enter movie name:", suggestion, movieFile.getPath(), parent); + input = showInputDialog("Enter movie name:", suggestion, String.format("%s / %s", movieFile.getParentFile().getName(), movieFile.getName()), parent); } // we only care about results from manual input from here on out @@ -290,7 +290,7 @@ class MovieHashMatcher implements AutoCompleteMatcher { // multiple results have been found, user must select one SelectDialog selectDialog = new SelectDialog(parent, options); - selectDialog.setTitle(movieFile.getPath()); + selectDialog.setTitle(String.format("%s / %s", movieFile.getParentFile().getName(), movieFile.getName())); selectDialog.getHeaderLabel().setText(String.format("Movies matching '%s':", fileQuery)); selectDialog.getCancelAction().putValue(Action.NAME, "Ignore"); selectDialog.pack();