COSMETIC: Sort torrent labels in popup menu

This commit is contained in:
Christophe Dumez
2010-05-12 19:05:50 +00:00
parent 93f635f9f4
commit 818a79c9db
2 changed files with 3 additions and 1 deletions

View File

@@ -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 <chris@qbittorrent.org> - v2.2.6

View File

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