]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarBackend.cpp
* do not lookup the same macro all the time
[lyx.git] / src / ToolbarBackend.cpp
index a4da7dfd559a5703ab62cf37895036943a525e74..948a5ae9a12305df7cd4636be81872cb95c9ea8d 100644 (file)
@@ -181,8 +181,11 @@ ToolbarInfo & ToolbarInfo::read(Lexer & lex)
                        break;
                        
                case TO_TABLEINSERT:
-                       add(ToolbarItem(ToolbarItem::TABLEINSERT,
-                               FuncRequest(kb_action(ToolbarItem::TABLEINSERT))));
+                       if (lex.next(true)) {
+                               docstring const tooltip = lex.getDocString();
+                               add(ToolbarItem(ToolbarItem::TABLEINSERT,
+                                       FuncRequest(kb_action(ToolbarItem::TABLEINSERT)), tooltip));
+                       }
                        break;
                        
                case TO_ENDTOOLBAR: