Changeset 10246


Ignore:
Timestamp:
2005-07-13T17:05:51+12:00 (19 years ago)
Author:
mdewsnip
Message:

Moved null test a bit earlier in the process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileManager.java

    r10245 r10246  
    7474    public void action(DragComponent source, FileNode[] source_nodes, DragComponent target, FileNode target_node)
    7575    {
     76    // Check there is something to do
     77    if (source_nodes == null) {
     78        return;
     79    }
     80
     81    // We need a unique ID for each file task
    7682    long id = System.currentTimeMillis();
    7783
     
    153159    public void run()
    154160    {
    155         // Check there is something to do
    156         if (source_nodes == null) {
    157         return;
    158         }
    159 
    160161        // Reset the progress bar and set it to indeterminate while calculating its size
    161162        LongProgressBar progress_bar = file_queue.getProgressBar();
Note: See TracChangeset for help on using the changeset viewer.