From e4d5b2b85960af99648d15c6a4aec5326b3ecfe8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dancs=C3=B3=20R=C3=B3bert?= <dancso.robert@d-rendszer.hu>
Date: Fri, 30 Nov 2012 21:48:00 +0100
Subject: [PATCH] Added disk name to the DiskView. The disk device name will
be shown on the disk map.
---
src/apps/drivesetup/DiskView.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/apps/drivesetup/DiskView.cpp b/src/apps/drivesetup/DiskView.cpp
index 7dd0df5..a634e33 100644
a
|
b
|
public:
|
202 | 202 | |
203 | 203 | virtual bool Visit(BDiskDevice* device) |
204 | 204 | { |
205 | | PartitionView* view = new PartitionView(B_TRANSLATE("Device"), 1.0, |
| 205 | const char* name; |
| 206 | if (device->Name() != NULL && device->Name()[0] != '\0') |
| 207 | name = device->Name(); |
| 208 | else |
| 209 | name = B_TRANSLATE("Device"); |
| 210 | |
| 211 | PartitionView* view = new PartitionView(name, 1.0, |
206 | 212 | device->Offset(), 0, device->ID()); |
207 | 213 | fViewMap.Put(device->ID(), view); |
208 | 214 | fView->GetLayout()->AddView(view); |