Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 5c68d02

Browse files
committed
Sort content labels lexicographically
That way, the combo box contents are going to be consistent and e.g. RHEL8 will always come after RHEL7 and so on.
1 parent 61eb34b commit 5c68d02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SSGIntegrationDialog.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ void SSGIntegrationDialog::loadContent()
9292
void SSGIntegrationDialog::scrapeSSGVariants()
9393
{
9494
const QDir& dir = getSSGDirectory();
95-
const QStringList variants = dir.entryList(QDir::Files | QDir::NoDotAndDotDot);
95+
QStringList variants = dir.entryList(QDir::Files | QDir::NoDotAndDotDot);
9696
QComboBox* cBox = mUI.contentComboBox;
9797

9898
int lastFavoriteIndex = 0;
99+
variants.sort();
99100
for (QStringList::const_iterator it = variants.constBegin();
100101
it != variants.constEnd(); ++it)
101102
{

0 commit comments

Comments
 (0)