]> git.lyx.org Git - features.git/commitdiff
make menu warnings unconditional
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 22 Jul 2003 09:15:55 +0000 (09:15 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 22 Jul 2003 09:15:55 +0000 (09:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7337 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/MenuBackend.C

index b01da8f178859aa506f1877558ab0384b2d4fb29..db8b7975e82a05e0c9834425859777ea3d81f5af 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-21  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * MenuBackend.C (expand): check menu shortcuts unconditionally
+
 2003-07-21  Angus Leeming  <leeming@lyx.org>
 
        * factory.C (createInset): pass a
 
        * aspell.C: add missing namespace lyx::support
 
-2003-07-07  Alfredo Brauntein  <abraunst@libero.it>
+2003-07-07  Alfredo Braunstein  <abraunst@libero.it>
 
        * BufferView.[Ch] (newFile): Add
        * BufferView_pimpl.[Ch] (newFile, connectBuffer, disconnectBuffer): Add
 
        * textcursor.h: new struct for cursor-related data
 
-2003-06-26  Alfredo Brauntein  <abraunst@lyx.org>
+2003-06-26  Alfredo Braunstein  <abraunst@lyx.org>
 
        * lyx_main.C (LyX): get full path of document loaded on the
        command line
 
        *       text.C: remove only use of broken operator<= in an Assert().
 
-2003-06-24  Alfredo Brauntein  <abraunst@lyx.org>
+2003-06-24  Alfredo Braunstein  <abraunst@lyx.org>
 
        * BufferView.[Ch] (getErrorList): removed unneeded forward declare,
        moved errorlist_.clear to showErrorList
 
-2003-06-24  Alfredo Brauntein  <abraunst@lyx.org>
+2003-06-24  Alfredo Braunstein  <abraunst@lyx.org>
 
        * converter.C (scanLog, runLaTeX):
        * buffer.C (makeLinuxDocFile, makeDocBookFile, runChkTeX):
index 9eb756c7f8527726690294299aa85fa1cf8cea57..f8df5e66f3225d461c67a79e96f559a32fc09277 100644 (file)
@@ -325,7 +325,7 @@ Menu & Menu::read(LyXLex & lex)
 void Menu::checkShortcuts() const
 {
        // This is a quadratic algorithm, but we do not care because
-       // it is used for debugging only.
+       // menus are short enough
        for (const_iterator it1 = begin(); it1 != end(); ++it1) {
                string shortcut = it1->shortcut();
                if (shortcut.empty())
@@ -334,7 +334,7 @@ void Menu::checkShortcuts() const
                        lyxerr << "Menu warning: menu entry \""
                               << it1->label()
                               << "\" does not contain shortcut `"
-                              << shortcut << '\'' << endl;
+                              << shortcut << "'." << endl;
                for (const_iterator it2 = begin(); it2 != it1 ; ++it2) {
                        if (!compare_ascii_no_case(it2->shortcut(), shortcut)) {
                                lyxerr << "Menu warning: menu entries "
@@ -693,8 +693,7 @@ void MenuBackend::expand(Menu const & frommenu, Menu & tomenu,
                tomenu.items_.pop_back();
 
        // Check whether the shortcuts are unique
-       if (lyxerr.debugging(Debug::GUI))
-               tomenu.checkShortcuts();
+       tomenu.checkShortcuts();
 }