]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Menus.cpp
Fix the outstanding part of #7764, which involves sorting the file lists
[lyx.git] / src / frontends / qt4 / Menus.cpp
index 8689b32f05b834e1fd6c6be55807743daa0c2092..270d5586978be777990ccdc667e29979376fdf2a 100644 (file)
@@ -723,12 +723,6 @@ bool MenuDefinition::searchMenu(FuncRequest const & func, docstring_list & names
 }
 
 
-bool compareFormat(Format const * p1, Format const * p2)
-{
-       return *p1 < *p2;
-}
-
-
 QString limitStringLength(docstring const & str)
 {
        size_t const max_item_length = 45;
@@ -1023,8 +1017,6 @@ void MenuDefinition::expandFormats(MenuItem::Kind const kind, Buffer const * buf
                return;
        }
        
-       sort(formats.begin(), formats.end(), &compareFormat);
-
        bool const view_update = (kind == MenuItem::ViewFormats
                        || kind == MenuItem::UpdateFormats);