Changeset 1698


Ignore:
Timestamp:
1/27/2010 3:12:00 AM (4 years ago)
Author:
lowjoel
Message:

Fixed the blank UI Text when the root of a drive is selected for erasure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.Manager/Task.cs

    r1675 r1698  
    502502        public override string UIText 
    503503        { 
    504             get { return System.IO.Path.GetFileName(Path); } 
     504            get 
     505            { 
     506                string fileName = System.IO.Path.GetFileName(Path); 
     507                string directoryName = System.IO.Path.GetDirectoryName(Path); 
     508                return string.IsNullOrEmpty(fileName) ?  
     509                        (string.IsNullOrEmpty(directoryName) ? Path : directoryName) 
     510                    : fileName; 
     511            } 
    505512        } 
    506513 
Note: See TracChangeset for help on using the changeset viewer.