Changeset 289

Show
Ignore:
Timestamp:
2007-05-05 06:41:01 (2 years ago)
Author:
MaierMan
Message:

Fix: #124, Chrome error when viewing properties of active download in DTA

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.9.x/chrome/content/dta/info.js

    r194 r289  
    4444                canvas.fillRect(0,0,300,20); 
    4545                canvas.fillStyle = join; 
    46                 if (d.join == null
     46                if (d.join == null || !d.totalSize
    4747                        canvas.fillRect(0,16,300,4); 
    4848                else 
     
    5151                canvas.fillStyle = cancel; 
    5252                canvas.fillRect(0,0,300,20); 
    53         } else if (d.isStarted) { 
     53        } else if (d.isStarted && d.totalSize) { 
    5454                while (c != -1) { 
    5555                        canvas.fillStyle=prog; 
     
    112112        } 
    113113} catch(e) { 
    114         alert(e); 
     114        DTA_debug.dump("load:", e); 
    115115} 
    116116}