mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Made right click menu work for multiple selection in DL list
This commit is contained in:
parent
d1546d18e6
commit
ee8bc5cdaf
2 changed files with 3 additions and 6 deletions
|
@ -3,6 +3,7 @@
|
||||||
- FEATURE: Brand new trayicon from Qt 4.2
|
- FEATURE: Brand new trayicon from Qt 4.2
|
||||||
- FEATURE: Added a torrent addition dialog
|
- FEATURE: Added a torrent addition dialog
|
||||||
- I18N: Added Finnish translation
|
- I18N: Added Finnish translation
|
||||||
|
- BUGFIX: Made right click menu work for multiple selection in DL list
|
||||||
- COSMETIC: Replaced OSD messages by systray messages
|
- COSMETIC: Replaced OSD messages by systray messages
|
||||||
- COSMETIC: Displaying save path in torrent properties window
|
- COSMETIC: Displaying save path in torrent properties window
|
||||||
|
|
||||||
|
|
|
@ -358,11 +358,7 @@ void GUI::cleanTempPreviewFile(int, QProcess::ExitStatus){
|
||||||
|
|
||||||
void GUI::displayDLListMenu(const QPoint& pos){
|
void GUI::displayDLListMenu(const QPoint& pos){
|
||||||
QMenu myDLLlistMenu(this);
|
QMenu myDLLlistMenu(this);
|
||||||
// Clear selection
|
QModelIndex index;
|
||||||
downloadList->clearSelection();
|
|
||||||
// Select items
|
|
||||||
QModelIndex index = downloadList->indexAt(pos);
|
|
||||||
selectGivenRow(index);
|
|
||||||
// Enable/disable pause/start action given the DL state
|
// Enable/disable pause/start action given the DL state
|
||||||
QModelIndexList selectedIndexes = downloadList->selectionModel()->selectedIndexes();
|
QModelIndexList selectedIndexes = downloadList->selectionModel()->selectedIndexes();
|
||||||
foreach(index, selectedIndexes){
|
foreach(index, selectedIndexes){
|
||||||
|
@ -378,7 +374,7 @@ void GUI::displayDLListMenu(const QPoint& pos){
|
||||||
}
|
}
|
||||||
myDLLlistMenu.addAction(actionDelete);
|
myDLLlistMenu.addAction(actionDelete);
|
||||||
myDLLlistMenu.addAction(actionTorrent_Properties);
|
myDLLlistMenu.addAction(actionTorrent_Properties);
|
||||||
if(!options->getPreviewProgram().isEmpty() && isFilePreviewPossible(h)){
|
if(!options->getPreviewProgram().isEmpty() && isFilePreviewPossible(h) && selectedIndexes.size()<=DLListModel->columnCount()){
|
||||||
myDLLlistMenu.addAction(actionPreview_file);
|
myDLLlistMenu.addAction(actionPreview_file);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue