* better error reporting when downloading subtitles

This commit is contained in:
Reinhard Pointner 2015-01-10 08:42:11 +00:00
parent 6979732bd4
commit 2845cd1c01
1 changed files with 3 additions and 3 deletions

View File

@ -442,14 +442,14 @@ class SubtitleAutoMatchDialog extends JDialog {
setIcon(ResourceManager.getIcon("dialog.cancel"));
setToolTipText(null);
} else {
setText(subtitleBean.getText());
if (subtitleBean.getError() == null) {
setText(subtitleBean.getText());
setIcon(subtitleBean.getIcon());
setToolTipText(null);
} else {
setText(String.format("%s (%s)", subtitleBean.getText(), subtitleBean.getError().getMessage()));
setIcon(ResourceManager.getIcon("status.warning"));
setToolTipText(subtitleBean.getError().getMessage());
setToolTipText(subtitleBean.getError().toString());
}
if (!isSelected) {