also checks for media read only as it seems CD-ROM are reported read only this way
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16056 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -268,7 +268,7 @@ TargetVisitor::TargetVisitor(BMenu *menu)
|
|||||||
bool
|
bool
|
||||||
TargetVisitor::Visit(BDiskDevice *device)
|
TargetVisitor::Visit(BDiskDevice *device)
|
||||||
{
|
{
|
||||||
if (device->IsReadOnly())
|
if (device->IsReadOnly() || device->IsReadOnlyMedia())
|
||||||
return false;
|
return false;
|
||||||
BPath path;
|
BPath path;
|
||||||
if (device->GetPath(&path)==B_OK)
|
if (device->GetPath(&path)==B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user