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:
Jérôme Duval 2006-01-24 10:54:25 +00:00
parent b5fc9db163
commit dcea76f0ab

View File

@ -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)