Browse Source

Do not display the priority menu if the torrent is being seeded (closes #697035)

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
fb03982312
  1. 2
      src/properties/propertieswidget.cpp

2
src/properties/propertieswidget.cpp

@ -489,6 +489,7 @@ void PropertiesWidget::displayFilesListMenu(const QPoint&){
actRename = myFilesLlistMenu.addAction(IconProvider::instance()->getIcon("edit-rename"), tr("Rename...")); actRename = myFilesLlistMenu.addAction(IconProvider::instance()->getIcon("edit-rename"), tr("Rename..."));
myFilesLlistMenu.addSeparator(); myFilesLlistMenu.addSeparator();
} }
if(static_cast<torrent_handle>(h).is_seed()) {
QMenu subMenu; QMenu subMenu;
subMenu.setTitle(tr("Priority")); subMenu.setTitle(tr("Priority"));
subMenu.addAction(actionNot_downloaded); subMenu.addAction(actionNot_downloaded);
@ -496,6 +497,7 @@ void PropertiesWidget::displayFilesListMenu(const QPoint&){
subMenu.addAction(actionHigh); subMenu.addAction(actionHigh);
subMenu.addAction(actionMaximum); subMenu.addAction(actionMaximum);
myFilesLlistMenu.addMenu(&subMenu); myFilesLlistMenu.addMenu(&subMenu);
}
// Call menu // Call menu
const QAction *act = myFilesLlistMenu.exec(QCursor::pos()); const QAction *act = myFilesLlistMenu.exec(QCursor::pos());
if(act) { if(act) {

Loading…
Cancel
Save