From 5c7514c31748e5017b8fc8b97c34b6b0ade4eefc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 28 Jul 2009 17:35:51 +0000 Subject: [PATCH] Patch by idefix: Make the source items behave exactly like the target items with regards to the label & style cleanup. Thanks a lot! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31854 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/installer/InstallerWindow.cpp | 2 +- src/apps/installer/PartitionMenuItem.h | 2 +- src/apps/installer/WorkerThread.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/installer/InstallerWindow.cpp b/src/apps/installer/InstallerWindow.cpp index 90feb048b1..fbc70bef98 100644 --- a/src/apps/installer/InstallerWindow.cpp +++ b/src/apps/installer/InstallerWindow.cpp @@ -362,7 +362,7 @@ InstallerWindow::MessageReceived(BMessage *msg) case SHOW_BOTTOM_MESSAGE: _ShowOptionalPackages(); break; - case SRC_PARTITION: + case SOURCE_PARTITION: _PublishPackages(); _UpdateControls(); break; diff --git a/src/apps/installer/PartitionMenuItem.h b/src/apps/installer/PartitionMenuItem.h index abd3925a10..722563258c 100644 --- a/src/apps/installer/PartitionMenuItem.h +++ b/src/apps/installer/PartitionMenuItem.h @@ -9,7 +9,7 @@ #include -const uint32 SRC_PARTITION = 'iSPT'; +const uint32 SOURCE_PARTITION = 'iSPT'; const uint32 TARGET_PARTITION = 'iTPT'; diff --git a/src/apps/installer/WorkerThread.cpp b/src/apps/installer/WorkerThread.cpp index aa1848c943..f23feae8bf 100644 --- a/src/apps/installer/WorkerThread.cpp +++ b/src/apps/installer/WorkerThread.cpp @@ -535,7 +535,7 @@ SourceVisitor::Visit(BPartition *partition, int32 level) char menuLabel[255]; make_partition_label(partition, label, menuLabel, false); PartitionMenuItem* item = new PartitionMenuItem(partition->ContentName(), - label, NULL, new BMessage(SRC_PARTITION), partition->ID()); + label, menuLabel, new BMessage(SOURCE_PARTITION), partition->ID()); item->SetMarked(isBootPartition); fMenu->AddItem(item); return false;