]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarBackend.C
fix bug 2089: Touching Navigate menu crashes Lyx when a TOC inset is in a section...
[lyx.git] / src / ToolbarBackend.C
index 1a616774cfb41ba08d82e4391473b784ae411e79..baa2ddfbcdfaf57865410b8aaaf1f53a02978fb4 100644 (file)
@@ -207,6 +207,7 @@ void ToolbarBackend::add(Toolbar & tb,
                         FuncRequest const & func, string const & tooltip)
 {
        tb.items.push_back(make_pair(func, tooltip));
+       tb.items.back().first.origin = FuncRequest::UI;
 }