Ticket #1391: Ticket 1391 - Volume Mount Icons.diff
File Ticket 1391 - Volume Mount Icons.diff, 882 bytes (added by , 16 years ago) |
---|
-
src/kits/storage/disk_device/Partition.cpp
384 384 status_t 385 385 BPartition::GetIcon(BBitmap* icon, icon_size which) const 386 386 { 387 /*388 387 status_t error = (icon ? B_OK : B_BAD_VALUE); 389 388 if (error == B_OK) { 390 389 if (IsMounted()) { … … 396 395 } else { 397 396 // not mounted: retrieve the icon ourselves 398 397 if (BDiskDevice* device = Device()) { 398 BPath path; 399 error = device->GetPath(&path); 399 400 // get the icon 400 401 if (error == B_OK) 401 error = get_device_icon( device->Path(), icon, which);402 error = get_device_icon(path.Path(), icon, which); 402 403 } else 403 404 error = B_ERROR; 404 405 } 405 406 } 406 407 return error; 407 */408 // not implemented409 return B_ERROR;410 408 } 411 409 412 410