]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.C
More fixes to the autocollapsing of paragraphs.
[lyx.git] / src / MenuBackend.C
index 4f44e3fa60379ddf7c9fe124c45aeeebef122161..b11f0a7a9145e27538c339b46afd459cdd1e380e 100644 (file)
@@ -22,6 +22,7 @@
 #include "debug.h"
 #include "gettext.h"
 #include "lastfiles.h"
+#include "lyx_main.h" // for lastfiles
 #include "bufferlist.h"
 #include "converter.h"
 #include "exporter.h"
@@ -33,7 +34,6 @@
 #include "support/lstrings.h"
 
 extern LyXAction lyxaction;
-extern LastFiles * lastfiles; 
 extern BufferList bufferlist;
 
 using std::endl;
@@ -366,8 +366,7 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const
                                int const action =  lyxaction
                                        .getPseudoAction(LFUN_FLOAT_LIST,
                                                         cit->second.type());
-                               string label = _("List of ");
-                               label += cit->second.name();
+                               string const label = cit->second.name() + _(" List");
                                tomenu.add(MenuItem(MenuItem::Command,
                                                    label, action));
                        }