mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-21 18:51:34 +08:00
Merge remote-tracking branch 'origin/GP-138_dev747368_batchimport_multiremovesrc'
This commit is contained in:
+9
-4
@@ -231,10 +231,15 @@ public class BatchImportDialog extends DialogComponentProvider {
|
||||
});
|
||||
|
||||
removeSourceButton.addActionListener(e -> {
|
||||
int index = sourceList.getSelectedIndex();
|
||||
if (index >= 0 && index < batchInfo.getUserAddedSources().size()) {
|
||||
UserAddedSourceInfo uasi = batchInfo.getUserAddedSources().get(index);
|
||||
batchInfo.remove(uasi.getFSRL());
|
||||
List<FSRL> sourcesToRemove = new ArrayList<>();
|
||||
for (int index : sourceList.getSelectedIndices()) {
|
||||
if (index >= 0 && index < batchInfo.getUserAddedSources().size()) {
|
||||
UserAddedSourceInfo uasi = batchInfo.getUserAddedSources().get(index);
|
||||
sourcesToRemove.add(uasi.getFSRL());
|
||||
}
|
||||
}
|
||||
for (FSRL fsrl : sourcesToRemove) {
|
||||
batchInfo.remove(fsrl);
|
||||
}
|
||||
refreshData();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user