* fixed bug that 'caused cellrenderer to crash
This commit is contained in:
parent
2278cc8d41
commit
c1fbf8fbb3
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue