]> 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 8bb8242a5b91aace0f9cb8e1cabde9a6afad718a..9d2503bee72074fd8b72468e65ed298009952c15 100644 (file)
@@ -69,19 +69,11 @@ void GuiSendTo::changed_adaptor()
 }
 
 
-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();