mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 08:56:15 +00:00
Event name changed from DELETE_REPORTS to DELETE_REPORT
This commit is contained in:
parent
04bf322b98
commit
7159d7d10c
@ -136,7 +136,7 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
||||
* from the case. Both the old value and the new value supplied by the
|
||||
* event object are null.
|
||||
*/
|
||||
REPORTS_DELETED;
|
||||
REPORT_DELETED;
|
||||
};
|
||||
|
||||
private String name;
|
||||
@ -1228,9 +1228,9 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
||||
|
||||
// fire property change event.
|
||||
try {
|
||||
Case.pcs.firePropertyChange(Events.REPORTS_DELETED.toString(), null, null);
|
||||
Case.pcs.firePropertyChange(Events.REPORT_DELETED.toString(), null, null);
|
||||
} catch (Exception ex) {
|
||||
String errorMessage = String.format("A Case %s listener threw an exception", Events.REPORTS_DELETED.toString()); //NON-NLS
|
||||
String errorMessage = String.format("A Case %s listener threw an exception", Events.REPORT_DELETED.toString()); //NON-NLS
|
||||
logger.log(Level.SEVERE, errorMessage, ex);
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public final class Reports implements AutopsyVisitableItem {
|
||||
@Override
|
||||
public void propertyChange(PropertyChangeEvent evt) {
|
||||
String eventType = evt.getPropertyName();
|
||||
if (eventType.equals(Case.Events.REPORT_ADDED.toString()) || eventType.equals(Case.Events.REPORTS_DELETED.toString())) {
|
||||
if (eventType.equals(Case.Events.REPORT_ADDED.toString()) || eventType.equals(Case.Events.REPORT_DELETED.toString())) {
|
||||
ReportNodeFactory.this.refresh(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user