Changeset 2059 for trunk/eraser
- Timestamp:
- 5/4/2010 8:13:48 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/eraser/Eraser/SchedulerPanel.cs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser/SchedulerPanel.cs
r2057 r2059 379 379 for (int i = 1; i <= cida.cidl; ++i) 380 380 { 381 if (cida.aoffset[i].Guid != Guid.Empty) 381 if (!string.IsNullOrEmpty(cida.aoffset[i].Path)) 382 { 383 files.Add(cida.aoffset[i].Path); 384 } 385 else if (cida.aoffset[i].Guid != Guid.Empty) 382 386 { 383 387 if (cida.aoffset[i].Guid == Shell.KnownFolderIDs.RecycleBin) … … 387 391 recycleBinIncluded = true; 388 392 } 389 }390 else391 {392 files.Add(cida.aoffset[i].Path);393 393 } 394 394 } … … 417 417 isTaskList = false; 418 418 } 419 descriptionInsert = descriptionInsert.Remove(descriptionInsert.Length - 2); 419 420 if (!string.IsNullOrEmpty(descriptionInsert)) 421 descriptionInsert = descriptionInsert.Remove(descriptionInsert.Length - 2); 420 422 421 423 if (!recycleBinIncluded && files.Count == 0) 424 { 422 425 e.Effect = DragDropEffects.None; 426 descriptionMessage = "Cannot erase the selected items"; 427 } 423 428 else if (isTaskList) 424 429 { … … 471 476 for (int i = 1; i <= cida.cidl; ++i) 472 477 { 473 if (cida.aoffset[i].Guid != Guid.Empty) 478 if (!string.IsNullOrEmpty(cida.aoffset[i].Path)) 479 { 480 files.Add(cida.aoffset[i].Path); 481 } 482 else if (cida.aoffset[i].Guid != Guid.Empty) 474 483 { 475 484 if (cida.aoffset[i].Guid == Shell.KnownFolderIDs.RecycleBin) 476 485 recycleBinIncluded = true; 477 }478 else479 {480 files.Add(cida.aoffset[i].Path);481 486 } 482 487 }
Note: See TracChangeset
for help on using the changeset viewer.
