mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
don't call Case.hasData() in OpenTimelineAction so we don't block the edt.
I also softened the mesage that pops up if the timeline is opened with no data sources added.
This commit is contained in:
parent
af179b33ea
commit
e8c6ec7f44
@ -41,5 +41,5 @@ Timeline.ProgressWindow.cancel.confdlg.msg=Do you want to cancel time line creat
|
|||||||
Timeline.ProgressWindow.cancel.confdlg.detail=Cancel timeline creation?
|
Timeline.ProgressWindow.cancel.confdlg.detail=Cancel timeline creation?
|
||||||
Timeline.progressWindow.name=Timeline
|
Timeline.progressWindow.name=Timeline
|
||||||
Timeline.progressWindow.title=Generating Timeline data
|
Timeline.progressWindow.title=Generating Timeline data
|
||||||
OpenTimeLineAction.msgdlg.text=Error creating timeline, there are no data sources.
|
OpenTimeLineAction.msgdlg.text=Could not create timeline, there are no data sources.
|
||||||
TimeLineTopComponent.timeZonePanel.text=Display Times In\:
|
TimeLineTopComponent.timeZonePanel.text=Display Times In\:
|
||||||
|
@ -54,7 +54,9 @@ public class OpenTimelineAction extends CallableSystemAction {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabled() {
|
public boolean isEnabled() {
|
||||||
return Case.isCaseOpen() && fxInited && Case.getCurrentCase().hasData();
|
/** we disabled the check to hasData() because if it is executed while a
|
||||||
|
* data source is being added, it blocks the edt */
|
||||||
|
return Case.isCaseOpen() && fxInited;// && Case.getCurrentCase().hasData();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -68,8 +70,8 @@ public class OpenTimelineAction extends CallableSystemAction {
|
|||||||
|
|
||||||
if (currentCase.hasData() == false) {
|
if (currentCase.hasData() == false) {
|
||||||
JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(),
|
JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(),
|
||||||
NbBundle.getMessage(this.getClass(), "OpenTimeLineAction.msgdlg.text"));
|
NbBundle.getMessage(this.getClass(), "OpenTimeLineAction.msgdlg.text"));
|
||||||
LOGGER.log(Level.INFO, "Error creating timeline, there are no data sources.");// NON-NLS
|
LOGGER.log(Level.INFO, "Could not create timeline, there are no data sources.");// NON-NLS
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
synchronized (OpenTimelineAction.class) {
|
synchronized (OpenTimelineAction.class) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user