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
This commit is contained in:
Jérôme Duval
2011-05-30 21:42:35 +00:00
parent a4710c0d46
commit e761436dee
+3 -2
View File
@@ -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());