|
|
@ -489,13 +489,15 @@ 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(); |
|
|
|
} |
|
|
|
} |
|
|
|
QMenu subMenu; |
|
|
|
if(static_cast<torrent_handle>(h).is_seed()) { |
|
|
|
subMenu.setTitle(tr("Priority")); |
|
|
|
QMenu subMenu; |
|
|
|
subMenu.addAction(actionNot_downloaded); |
|
|
|
subMenu.setTitle(tr("Priority")); |
|
|
|
subMenu.addAction(actionNormal); |
|
|
|
subMenu.addAction(actionNot_downloaded); |
|
|
|
subMenu.addAction(actionHigh); |
|
|
|
subMenu.addAction(actionNormal); |
|
|
|
subMenu.addAction(actionMaximum); |
|
|
|
subMenu.addAction(actionHigh); |
|
|
|
myFilesLlistMenu.addMenu(&subMenu); |
|
|
|
subMenu.addAction(actionMaximum); |
|
|
|
|
|
|
|
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) { |
|
|
|