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..."));