if (type < 0)
return QModelIndex();
+ // FIXME: The TocBackend infrastructure is not ready for LOF and LOT
+ // This is because a proper ParConstIterator is not constructed in
+ // InsetCaption::addToToc()
+ if(!canOutline(type))
+ return QModelIndex();
+
return toc_models_[type]->modelIndex(getCurrentTocItem(type));
}
return;
}
- // FIXME: The TocBackend infrastructure is not ready for LOF and LOT
- // This is because a proper ParConstIterator is not constructed in
- // InsetCaption::addToToc()
- if(!form_->canOutline(typeCO->currentIndex()))
- return;
-
disconnectSelectionModel();
tocTV->setCurrentIndex(index);
tocTV->scrollTo(index);