Limit NSRL detection to filename

This commit is contained in:
Devin148 2012-11-26 09:46:18 -05:00
parent 9c82125aa6
commit e697594cd8

View File

@ -242,7 +242,7 @@ class HashDbAddDatabaseDialog extends javax.swing.JDialog {
String derivedName = SleuthkitJNI.getDatabaseName(filePath); String derivedName = SleuthkitJNI.getDatabaseName(filePath);
databasePathTextField.setText(filePath); databasePathTextField.setText(filePath);
databaseNameTextField.setText(derivedName); databaseNameTextField.setText(derivedName);
if (filePath.toLowerCase().contains("nsrl")) { if (derivedName.toLowerCase().contains("nsrl")) {
nsrlRadioButton.setSelected(true); nsrlRadioButton.setSelected(true);
nsrlRadioButtonActionPerformed(null); nsrlRadioButtonActionPerformed(null);
} }