]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiToc.cpp
Please JMarc: Make sure we always pass through LyXFunc::dispatch() even if this is...
[features.git] / src / frontends / qt4 / GuiToc.cpp
index 7e3ca23da1b17b9a8cbce46bec92f8999c5d4f0b..f366a1ffcce792c586e3156857633a097af667d6 100644 (file)
@@ -113,7 +113,7 @@ void GuiToc::goTo(int type, QModelIndex const & index)
        LYXERR(Debug::GUI, "GuiToc::goTo " << to_utf8(it->str()));
 
        string const tmp = convert<string>(it->id());
-       lyxview().dispatch(FuncRequest(LFUN_PARAGRAPH_GOTO, tmp));
+       dispatch(FuncRequest(LFUN_PARAGRAPH_GOTO, tmp));
 }