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:
parent
b5fc9db163
commit
dcea76f0ab
@ -268,7 +268,7 @@ TargetVisitor::TargetVisitor(BMenu *menu)
|
||||
bool
|
||||
TargetVisitor::Visit(BDiskDevice *device)
|
||||
{
|
||||
if (device->IsReadOnly())
|
||||
if (device->IsReadOnly() || device->IsReadOnlyMedia())
|
||||
return false;
|
||||
BPath path;
|
||||
if (device->GetPath(&path)==B_OK)
|
||||
|
Loading…
x
Reference in New Issue
Block a user