* TocWidget: Relay the LFUNs to the appropriate inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29165
a592a061-630c-0410-9148-
cb99ea01b6c8
void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd)
{
+ QModelIndex const & index = tocTV->currentIndex();
+ TocItem const & item =
+ gui_view_.tocModels().currentItem(current_type_, index);
+ DocIterator const & dit = item.dit();
+
+ Inset * inset = 0;
+ if (current_type_ == "label")
+ inset = dit.nextInset();
+
+ if (inset)
+ inset->dispatch(cur, FuncRequest(cmd));
}