When initializing a partition, default to the existing partition name. If

there is none, default to "Haiku".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26526 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-07-20 17:43:39 +00:00
parent c6d022fab9
commit 7c730d1ed4

View File

@ -760,7 +760,9 @@ MainWindow::_Initialize(BDiskDevice* disk, partition_id selectedPartition,
// TODO: use partition initialization editor
// (partition->GetInitializationParameterEditor())
BString name = "Haiku";
BString name = partition->ContentName();
if (name.Length() == 0)
name = "Haiku";
BString parameters;
InitParamsPanel* panel = new InitParamsPanel(this);
if (panel->Go(name, parameters) == GO_CANCELED)