mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 19:14:55 +00:00
5114 make first group selected by default
This commit is contained in:
parent
8213a85ca0
commit
bd84a831f5
@ -53,6 +53,9 @@ class GroupListPanel extends javax.swing.JPanel {
|
|||||||
results = searchCompleteEvent.getSearchResults().toLinkedHashMap();
|
results = searchCompleteEvent.getSearchResults().toLinkedHashMap();
|
||||||
Set<String> resultsKeySet = results.keySet();
|
Set<String> resultsKeySet = results.keySet();
|
||||||
groupList.setListData(resultsKeySet.toArray(new String[results.size()]));
|
groupList.setListData(resultsKeySet.toArray(new String[results.size()]));
|
||||||
|
if (groupList.getModel().getSize() > 0) {
|
||||||
|
groupList.setSelectedIndex(0);
|
||||||
|
}
|
||||||
validate();
|
validate();
|
||||||
repaint();
|
repaint();
|
||||||
} catch (FileSearchException ex) {
|
} catch (FileSearchException ex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user