]> 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 408b5a4f124534cfce20e894b7cf47636f23f980..9d2503bee72074fd8b72468e65ed298009952c15 100644 (file)
 #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>
 
 #include <QLineEdit>
 #include <QListWidget>
@@ -50,7 +53,7 @@ GuiSendTo::GuiSendTo(GuiView & lv)
                this, SLOT(changed_adaptor()));
        connect(formatLW, SIGNAL(itemSelectionChanged()),
                this, SLOT(changed_adaptor()));
-       connect(commandCO, SIGNAL(textChanged(QString)),
+       connect(commandCO, SIGNAL(editTextChanged(QString)),
                this, SLOT(changed_adaptor()));
 
        bc().setPolicy(ButtonPolicy::OkApplyCancelPolicy);
@@ -69,7 +72,8 @@ void GuiSendTo::changed_adaptor()
 void GuiSendTo::updateContents()
 {
        all_formats_ = buffer().params().exportableFormats(false);
-
+       sort(all_formats_.begin(), all_formats_.end(), Format::formatSorter);
+       
        // Save the current selection if any
        Format const * current_format = 0;
        int const line = formatLW->currentRow();