local files wizard: enable Next

This commit is contained in:
adam-m 2013-05-14 12:28:40 -04:00
parent 2aa31d73d9
commit d49272fb2e
2 changed files with 6 additions and 2 deletions

View File

@ -45,7 +45,7 @@ import org.sleuthkit.autopsy.coreutils.PlatformUtil;
*/
public class LocalDiskPanel extends ContentTypePanel {
private static LocalDiskPanel instance;
private PropertyChangeSupport pcs = new PropertyChangeSupport(this);
private final PropertyChangeSupport pcs = new PropertyChangeSupport(this);
private List<LocalDisk> disks = new ArrayList<LocalDisk>();
private LocalDiskModel model;
private boolean enableNext = false;
@ -185,7 +185,6 @@ public class LocalDiskPanel extends ContentTypePanel {
@Override
public void addPropertyChangeListener(PropertyChangeListener pcl) {
pcs = new PropertyChangeSupport(this);
pcs.addPropertyChangeListener(pcl);
}

View File

@ -202,6 +202,11 @@ public class LocalFilesPanel extends ContentTypePanel {
this.selectedPaths.setToolTipText(allPaths.toString());
}
if (!currentFiles.isEmpty()) {
enableNext = true;
pcs.firePropertyChange(AddImageVisualPanel1.EVENT.UPDATE_UI.toString(), false, true);
}
}//GEN-LAST:event_selectButtonActionPerformed
private void clearButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearButtonActionPerformed