|
|
@ -769,7 +769,7 @@ void TransferListWidget::displayListMenu(const QPoint&) |
|
|
|
listMenu.addAction(&actionRename); |
|
|
|
listMenu.addAction(&actionRename); |
|
|
|
// Category Menu
|
|
|
|
// Category Menu
|
|
|
|
QStringList categories = BitTorrent::Session::instance()->categories(); |
|
|
|
QStringList categories = BitTorrent::Session::instance()->categories(); |
|
|
|
std::sort(categories.begin(), categories.end(), Utils::String::NaturalCompare()); |
|
|
|
std::sort(categories.begin(), categories.end(), Utils::String::naturalCompare); |
|
|
|
QList<QAction*> categoryActions; |
|
|
|
QList<QAction*> categoryActions; |
|
|
|
QMenu *categoryMenu = listMenu.addMenu(GuiIconProvider::instance()->getIcon("view-categories"), tr("Category")); |
|
|
|
QMenu *categoryMenu = listMenu.addMenu(GuiIconProvider::instance()->getIcon("view-categories"), tr("Category")); |
|
|
|
categoryActions << categoryMenu->addAction(GuiIconProvider::instance()->getIcon("list-add"), tr("New...", "New category...")); |
|
|
|
categoryActions << categoryMenu->addAction(GuiIconProvider::instance()->getIcon("list-add"), tr("New...", "New category...")); |
|
|
|