Don't crash if no item is currently selected. Fixes #7085.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40189 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
97873fad0d
commit
3927ba4b3d
@ -313,6 +313,9 @@ DrivesPage::_SelectedDriveItem()
|
||||
void
|
||||
DrivesPage::_UpdateWizardButtons(DriveItem* item)
|
||||
{
|
||||
if (item == NULL)
|
||||
return;
|
||||
|
||||
fWizardView->SetPreviousButtonEnabled(
|
||||
item->CanBeInstalled() && item->IsInstalled());
|
||||
fWizardView->SetNextButtonEnabled(item->CanBeInstalled());
|
||||
|
Loading…
Reference in New Issue
Block a user