Richard Heck wrote: > I think maybe there should also be an "else" clause here that disables > the slider if buttons_enabled is false. Otherwise, I worry someone could > delete the last section, thereby emptying the TOC, and we'd see the same > behavior.
This is the case in the version I committed: -void TocWidget::enableButtons(bool enable) +void TocWidget::enableControls(bool enable) { updatePB->setEnabled(enable); @@ -205,6 +205,8 @@ moveDownPB->setEnabled(enable); moveInPB->setEnabled(enable); moveOutPB->setEnabled(enable); + + depthSL->setEnabled(enable); } Jürgen