* fixed bug that 'caused cellrenderer to crash

This commit is contained in:
Reinhard Pointner 2012-02-22 08:16:13 +00:00
parent 2278cc8d41
commit c1fbf8fbb3
2 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ class RenameListCellRenderer extends DefaultFancyListCellRenderer {
}
}
if (renameModel.preserveExtension() && renameModel.getMatch(index).getCandidate() != null) {
if (renameModel.preserveExtension() && renameModel.hasComplement(index)) {
typeRenderer.setText(getType(renameModel.getMatch(index).getCandidate()));
typeRenderer.setVisible(true);
}

View File

@ -381,9 +381,6 @@ public class RenamePanel extends JComponent {
return;
}
// auto-match in progress
namesList.firePropertyChange(LOADING_PROPERTY, false, true);
// clear names list
renameModel.values().clear();
@ -431,6 +428,9 @@ public class RenamePanel extends JComponent {
}
};
// auto-match in progress
namesList.firePropertyChange(LOADING_PROPERTY, false, true);
worker.execute();
}
}