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:
Rene Gollent 2011-01-10 01:58:18 +00:00
parent 97873fad0d
commit 3927ba4b3d

View File

@ -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());