Outliner: Fix synchronous navigation for all types.

* GuiToc::currentIndex(): remove FIXME


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23016 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-15 08:50:35 +00:00
parent d8ee26ec6c
commit 17efe15322

View File

@ -96,12 +96,6 @@ QModelIndex GuiToc::currentIndex(int type) const
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(currentTocItem(type));
}