anevilyak@xxxxxxxxx wrote: > Log: > Refactor a little bit in order to better handle the button states as > suggested > by Axel. Should resolve #7073. Thanks! > - if (item == NULL) > + fWizardView->SetPreviousButtonHidden(!fHasInstallableItems); > + if (fHasInstallableItems) { > + fWizardView->SetPreviousButtonLabel( > + B_TRANSLATE_COMMENT("Uninstall", "Button")); > + if (fDrivesView->CurrentSelection() == -1) { > + fWizardView->SetPreviousButtonEnabled(false); > + fWizardView->SetNextButtonEnabled(false); > + } > + } else { > + fWizardView->SetNextButtonLabel( > + B_TRANSLATE_COMMENT("Quit", "Button")); > + } > + > + if (item == NULL) { > + fWizardView->SetPreviousButtonEnabled(false); > + fWizardView->SetNextButtonEnabled(false); > return; This could now be simplified a bit, though, but I can do that, too, if you want :-) Bye, Axel.