]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.C
* Replace all use of 'slashify_path' with 'internal_path'.
[lyx.git] / src / MenuBackend.C
index a4e02903c5b02db738fb7036efd1eca04ed58911..294599d1cf3e0042c23799418b6aea525c7b3c9b 100644 (file)
@@ -105,7 +105,9 @@ MenuItem::MenuItem(Kind kind, string const & label,
 MenuItem::MenuItem(Kind kind, string const & label,
                   FuncRequest const & func, bool optional)
        : kind_(kind), label_(label), func_(func), optional_(optional)
-{}
+{
+       func_.origin = FuncRequest::UI;
+}
 
 
 MenuItem::~MenuItem()
@@ -399,7 +401,7 @@ void Menu::checkShortcuts() const
 
 void MenuBackend::specialMenu(string const &name)
 {
-       if (hasMenu(name)) 
+       if (hasMenu(name))
                specialmenu_ = &getMenu(name);
 }
 
@@ -801,7 +803,7 @@ void MenuBackend::expand(Menu const & frommenu, Menu & tomenu,
                        break;
 
                case MenuItem::Command:
-                       if (!specialmenu_ 
+                       if (!specialmenu_
                            || !specialmenu_->hasFunc(cit->func()))
                                tomenu.add(*cit, view);
                }