From 818a79c9db9a2879b214267239721f2016718724 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 12 May 2010 19:05:50 +0000 Subject: [PATCH] COSMETIC: Sort torrent labels in popup menu --- Changelog | 1 + src/transferlistwidget.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index ae8dfe8d5..2cff47c09 100644 --- a/Changelog +++ b/Changelog @@ -5,6 +5,7 @@ - BUGFIX: Improved empty folder removing code - BUGFIX: Use guid or news url as RSS items identifier (instead of title) - BUGFIX: Fix possible crash in RSS item selection code + - COSMETIC: Sort torrent labels in popup menu - I18N: Added Croatian translation * Sun Apr 18 2010 - Christophe Dumez - v2.2.6 diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index a8db899f8..8d0da7092 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -1086,7 +1086,8 @@ void TransferListWidget::displayListMenu(const QPoint&) { if(selectedIndexes.size() == 1) listMenu.addAction(&actionRename); // Label Menu - const QStringList &customLabels = getCustomLabels(); + QStringList customLabels = getCustomLabels(); + customLabels.sort(); QList labelActions; QMenu *labelMenu = listMenu.addMenu(QIcon(":/Icons/oxygen/feed-subscribe.png"), tr("Label")); labelActions << labelMenu->addAction(QIcon(":/Icons/oxygen/list-add.png"), tr("New...", "New label..."));