mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 11:52:45 +00:00
Fix bug #7714 by sorting the formats.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39437 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f2d6176084
commit
c0acc25353
@ -22,6 +22,8 @@
|
|||||||
#include "support/qstring_helpers.h"
|
#include "support/qstring_helpers.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QListWidget>
|
#include <QListWidget>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
@ -65,11 +67,18 @@ void GuiSendTo::changed_adaptor()
|
|||||||
changed();
|
changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
bool formatSorter(Format const * lhs, Format const * rhs) {
|
||||||
|
return lhs->prettyname() < rhs->prettyname();
|
||||||
|
}
|
||||||
|
} // end namespace
|
||||||
|
|
||||||
void GuiSendTo::updateContents()
|
void GuiSendTo::updateContents()
|
||||||
{
|
{
|
||||||
all_formats_ = buffer().params().exportableFormats(false);
|
all_formats_ = buffer().params().exportableFormats(false);
|
||||||
|
|
||||||
|
sort(all_formats_.begin(), all_formats_.end(), formatSorter);
|
||||||
|
|
||||||
// Save the current selection if any
|
// Save the current selection if any
|
||||||
Format const * current_format = 0;
|
Format const * current_format = 0;
|
||||||
int const line = formatLW->currentRow();
|
int const line = formatLW->currentRow();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user