mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Keyword search edit list panel show only unlocked lists
This commit is contained in:
parent
b5ee94cb28
commit
12f260222b
@ -693,7 +693,7 @@ private void useForIngestCheckboxActionPerformed(java.awt.event.ActionEvent evt)
|
||||
listSelectionModel.setSelectionInterval(index, index);
|
||||
KeywordSearchListsXML loader = KeywordSearchListsXML.getCurrent();
|
||||
|
||||
currentKeywordList = loader.getListsL().get(index);
|
||||
currentKeywordList = loader.getListsL(false).get(index);
|
||||
tableModel.resync();
|
||||
initButtons();
|
||||
} else {
|
||||
|
@ -128,6 +128,16 @@ public abstract class KeywordSearchListsAbstract {
|
||||
return ret;
|
||||
}
|
||||
|
||||
List<KeywordSearchList> getListsL(boolean locked) {
|
||||
List<KeywordSearchList> ret = new ArrayList<KeywordSearchList>();
|
||||
for (KeywordSearchList list : theLists.values()) {
|
||||
if(list.isLocked().equals(locked)) {
|
||||
ret.add(list);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get list names of all loaded keyword list names
|
||||
* @return List of keyword list names
|
||||
|
Loading…
x
Reference in New Issue
Block a user