mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
remove error observer from case
This commit is contained in:
parent
e8b207f5fb
commit
a9c95d60c7
@ -70,8 +70,7 @@ import org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess;
|
|||||||
* open at a time. Use getCurrentCase() to retrieve the object for the current
|
* open at a time. Use getCurrentCase() to retrieve the object for the current
|
||||||
* case.
|
* case.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation") // TODO: Remove this when ErrorObserver is replaced.
|
public class Case {
|
||||||
public class Case implements SleuthkitCase.ErrorObserver {
|
|
||||||
|
|
||||||
private static final String autopsyVer = Version.getVersion(); // current version of autopsy. Change it when the version is changed
|
private static final String autopsyVer = Version.getVersion(); // current version of autopsy. Change it when the version is changed
|
||||||
private static final String EVENT_CHANNEL_NAME = "%s-Case-Events";
|
private static final String EVENT_CHANNEL_NAME = "%s-Case-Events";
|
||||||
@ -224,7 +223,6 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
|||||||
* constructor.
|
* constructor.
|
||||||
*/
|
*/
|
||||||
private void init() {
|
private void init() {
|
||||||
db.addErrorObserver(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1342,11 +1340,6 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void receiveError(String context, String errorMessage) {
|
|
||||||
MessageNotifyUtil.Notify.error(context, errorMessage);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a report to the case.
|
* Adds a report to the case.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user