mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
remove updateHost
This commit is contained in:
parent
5b63326a78
commit
ea411bcb6f
@ -234,9 +234,8 @@ public class ManageHostsDialog extends javax.swing.JDialog {
|
|||||||
if (selectedHost != null) {
|
if (selectedHost != null) {
|
||||||
String newHostName = getAddEditDialogName(selectedHost);
|
String newHostName = getAddEditDialogName(selectedHost);
|
||||||
if (newHostName != null) {
|
if (newHostName != null) {
|
||||||
selectedHost.setName(newHostName);
|
|
||||||
try {
|
try {
|
||||||
Case.getCurrentCaseThrows().getSleuthkitCase().getHostManager().updateHost(selectedHost);
|
Case.getCurrentCaseThrows().getSleuthkitCase().getHostManager().updateHostName(selectedHost, newHostName);
|
||||||
} catch (NoCurrentCaseException | TskCoreException e) {
|
} 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);
|
logger.log(Level.WARNING, String.format("Unable to update host '%s' with id: %d at this time.", selectedHost.getName(), selectedHost.getHostId()), e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user