1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 21:14:33 +00:00

Fix '&' character in label name becomes accelerator key, closes #3454.

This commit is contained in:
Chocobo1 2015-07-19 13:02:41 +08:00
parent 5281593bb6
commit 58b600198f

View File

@ -761,8 +761,10 @@ void TransferListWidget::displayListMenu(const QPoint&)
labelActions << labelMenu->addAction(GuiIconProvider::instance()->getIcon("list-add"), tr("New...", "New label..."));
labelActions << labelMenu->addAction(GuiIconProvider::instance()->getIcon("edit-clear"), tr("Reset", "Reset label"));
labelMenu->addSeparator();
foreach (const QString &label, customLabels)
foreach (QString label, customLabels) {
label.replace('&', "&&"); // avoid '&' becomes accelerator key
labelActions << labelMenu->addAction(GuiIconProvider::instance()->getIcon("inode-directory"), label);
}
listMenu.addSeparator();
if (one_not_seed)
listMenu.addAction(&actionSet_download_limit);