]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSendto.cpp
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / GuiSendto.cpp
index 56753429595ba99aa86600708456e470bb333efb..9d2503bee72074fd8b72468e65ed298009952c15 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,18 +68,12 @@ void GuiSendTo::changed_adaptor()
        changed();
 }
 
-namespace {
-bool formatSorter(Format const * lhs, Format const * rhs) {
-       return lhs->prettyname() < rhs->prettyname();
-}
-} // end namespace
 
 void GuiSendTo::updateContents()
 {
        all_formats_ = buffer().params().exportableFormats(false);
+       sort(all_formats_.begin(), all_formats_.end(), Format::formatSorter);
        
-       sort(all_formats_.begin(), all_formats_.end(), formatSorter);
-
        // Save the current selection if any
        Format const * current_format = 0;
        int const line = formatLW->currentRow();