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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user