From dcea76f0abdfe055fda04e5415cd77a3f8ef727a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 24 Jan 2006 10:54:25 +0000 Subject: [PATCH] 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 --- src/apps/installer/CopyEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/installer/CopyEngine.cpp b/src/apps/installer/CopyEngine.cpp index 30e8d33ef8..a7a5a15bc1 100644 --- a/src/apps/installer/CopyEngine.cpp +++ b/src/apps/installer/CopyEngine.cpp @@ -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)