mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
HashDB panel reverts only if ingest is not running. Prevents bug that closes DB while still in use.
This commit is contained in:
parent
6ab5fef8f8
commit
46f8fd99fd
@ -269,9 +269,15 @@ public final class HashLookupSettingsPanel extends IngestModuleGlobalSettingsPan
|
||||
}
|
||||
|
||||
public void cancel() {
|
||||
HashDbManager.getInstance().loadLastSavedConfiguration();
|
||||
/* Revert back to last settings only if the user could have
|
||||
* made changes. Doing this while ingest is running causes
|
||||
* hash dbs to be closed while they are still being used.
|
||||
*/
|
||||
if (IngestManager.getInstance().isIngestRunning() == false) {
|
||||
HashDbManager.getInstance().loadLastSavedConfiguration();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void removeThese(List<HashDb> toRemove) {
|
||||
for (HashDb hashDb : toRemove) {
|
||||
hashSetManager.removeHashDatabaseInternal(hashDb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user