mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 03:14:44 +00:00
Sort labels in right click menu
This commit is contained in:
parent
ea99f44893
commit
bf73c47bc5
@ -1086,7 +1086,8 @@ void TransferListWidget::displayListMenu(const QPoint&) {
|
|||||||
if(selectedIndexes.size() == 1)
|
if(selectedIndexes.size() == 1)
|
||||||
listMenu.addAction(&actionRename);
|
listMenu.addAction(&actionRename);
|
||||||
// Label Menu
|
// Label Menu
|
||||||
const QStringList &customLabels = getCustomLabels();
|
QStringList customLabels = getCustomLabels();
|
||||||
|
customLabels.sort();
|
||||||
QList<QAction*> labelActions;
|
QList<QAction*> labelActions;
|
||||||
QMenu *labelMenu = listMenu.addMenu(QIcon(":/Icons/oxygen/feed-subscribe.png"), tr("Label"));
|
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..."));
|
labelActions << labelMenu->addAction(QIcon(":/Icons/oxygen/list-add.png"), tr("New...", "New label..."));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user