From e761436deee54e040b0347002da7ccd388f02c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 30 May 2011 21:42:35 +0000 Subject: [PATCH] Also enables the Initialize menu when the partition is also a device: Hopefully should fix #7572. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41842 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/drivesetup/MainWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp index 5325fe60c5..af3813b031 100644 --- a/src/apps/drivesetup/MainWindow.cpp +++ b/src/apps/drivesetup/MainWindow.cpp @@ -581,8 +581,9 @@ MainWindow::_UpdateMenus(BDiskDevice* disk, fInitMenu->SetEnabled(!partition->IsMounted() && !partition->IsReadOnly() && partition->Device()->HasMedia() - // Check if the current disk system allows initialzation. - && partition->CanInitialize(partitionDiskSystem.PrettyName())); + // Check if the current disk system allows initialization. + && (partition->CanInitialize(partitionDiskSystem.PrettyName()) + || partition->IsDevice())); fDeleteMI->SetEnabled(!partition->IsMounted() && !partition->IsDevice());