From ea411bcb6f3d5d192027f97d9b7c2554812f9a3c Mon Sep 17 00:00:00 2001 From: Greg DiCristofaro Date: Tue, 6 Apr 2021 09:33:29 -0400 Subject: [PATCH] remove updateHost --- .../sleuthkit/autopsy/datamodel/hosts/ManageHostsDialog.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/hosts/ManageHostsDialog.java b/Core/src/org/sleuthkit/autopsy/datamodel/hosts/ManageHostsDialog.java index 7d4d521b51..5573cac9a5 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/hosts/ManageHostsDialog.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/hosts/ManageHostsDialog.java @@ -234,9 +234,8 @@ public class ManageHostsDialog extends javax.swing.JDialog { if (selectedHost != null) { String newHostName = getAddEditDialogName(selectedHost); if (newHostName != null) { - selectedHost.setName(newHostName); try { - Case.getCurrentCaseThrows().getSleuthkitCase().getHostManager().updateHost(selectedHost); + Case.getCurrentCaseThrows().getSleuthkitCase().getHostManager().updateHostName(selectedHost, newHostName); } catch (NoCurrentCaseException | TskCoreException e) { logger.log(Level.WARNING, String.format("Unable to update host '%s' with id: %d at this time.", selectedHost.getName(), selectedHost.getHostId()), e); }