From bf73c47bc5d98f6f4f5410d2eee010e6d7b5716d Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 12 May 2010 19:03:31 +0000 Subject: [PATCH] Sort labels in right click menu --- src/transferlistwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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..."));