]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSendto.cpp
Don't allow newline characters in preference (#5840).
[lyx.git] / src / frontends / qt4 / GuiSendto.cpp
index 56753429595ba99aa86600708456e470bb333efb..8bb8242a5b91aace0f9cb8e1cabde9a6afad718a 100644 (file)
@@ -19,8 +19,9 @@
 #include "Format.h"
 #include "FuncRequest.h"
 
-#include "support/qstring_helpers.h"
 #include "support/filetools.h"
+#include "support/gettext.h"
+#include "support/qstring_helpers.h"
 
 #include <algorithm>
 
@@ -67,12 +68,14 @@ void GuiSendTo::changed_adaptor()
        changed();
 }
 
+
 namespace {
 bool formatSorter(Format const * lhs, Format const * rhs) {
-       return lhs->prettyname() < rhs->prettyname();
+       return _(lhs->prettyname()) < _(rhs->prettyname());
 }
 } // end namespace
 
+
 void GuiSendTo::updateContents()
 {
        all_formats_ = buffer().params().exportableFormats(false);