From cbc0e4044f26dde91fe989e48aa2626036fb58fb Mon Sep 17 00:00:00 2001 From: adam-m Date: Fri, 16 Mar 2012 09:29:30 -0400 Subject: [PATCH] Remove no images dialog, just run the wizard when case is created --- Case/src/org/sleuthkit/autopsy/casemodule/Case.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Case/src/org/sleuthkit/autopsy/casemodule/Case.java b/Case/src/org/sleuthkit/autopsy/casemodule/Case.java index 80906ecef2..436d47f117 100755 --- a/Case/src/org/sleuthkit/autopsy/casemodule/Case.java +++ b/Case/src/org/sleuthkit/autopsy/casemodule/Case.java @@ -715,21 +715,12 @@ public class Case { * a dialog offering to add one. */ private static void noRootObjectsNotification() { - final NotifyDescriptor nd = new NotifyDescriptor( - "This case contains no images. Would you like to add one?", - "No images in case", NotifyDescriptor.YES_NO_OPTION, - NotifyDescriptor.INFORMATION_MESSAGE, - null, - NotifyDescriptor.YES_OPTION); - SwingUtilities.invokeLater(new Runnable() { @Override public void run() { - if (DialogDisplayer.getDefault().notify(nd) == NotifyDescriptor.YES_OPTION) { - final AddImageAction action = Lookup.getDefault().lookup(AddImageAction.class); - action.actionPerformed(null); - } + final AddImageAction action = Lookup.getDefault().lookup(AddImageAction.class); + action.actionPerformed(null); } }); }