From fb03982312970fe9de423164422844d7476119d2 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 4 Jan 2011 16:58:44 +0000 Subject: [PATCH] Do not display the priority menu if the torrent is being seeded (closes #697035) --- src/properties/propertieswidget.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/properties/propertieswidget.cpp b/src/properties/propertieswidget.cpp index 7a4b232a4..114a4b45d 100644 --- a/src/properties/propertieswidget.cpp +++ b/src/properties/propertieswidget.cpp @@ -489,13 +489,15 @@ void PropertiesWidget::displayFilesListMenu(const QPoint&){ actRename = myFilesLlistMenu.addAction(IconProvider::instance()->getIcon("edit-rename"), tr("Rename...")); myFilesLlistMenu.addSeparator(); } - QMenu subMenu; - subMenu.setTitle(tr("Priority")); - subMenu.addAction(actionNot_downloaded); - subMenu.addAction(actionNormal); - subMenu.addAction(actionHigh); - subMenu.addAction(actionMaximum); - myFilesLlistMenu.addMenu(&subMenu); + if(static_cast(h).is_seed()) { + QMenu subMenu; + subMenu.setTitle(tr("Priority")); + subMenu.addAction(actionNot_downloaded); + subMenu.addAction(actionNormal); + subMenu.addAction(actionHigh); + subMenu.addAction(actionMaximum); + myFilesLlistMenu.addMenu(&subMenu); + } // Call menu const QAction *act = myFilesLlistMenu.exec(QCursor::pos()); if(act) {