Browse Source

Sort labels in right click menu

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
bf73c47bc5
  1. 3
      src/transferlistwidget.cpp

3
src/transferlistwidget.cpp

@ -1086,7 +1086,8 @@ void TransferListWidget::displayListMenu(const QPoint&) { @@ -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..."));

Loading…
Cancel
Save