mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Fix heap-buffer-overrun in PropertiesWidget::displayFilesListMenu
This commit is contained in:
parent
2bc9e2c1a5
commit
ddd2025968
1 changed files with 3 additions and 1 deletions
|
@ -468,8 +468,10 @@ void PropertiesWidget::openFolder(const QModelIndex &index, bool containing_fold
|
|||
void PropertiesWidget::displayFilesListMenu(const QPoint&) {
|
||||
if (!h.is_valid())
|
||||
return;
|
||||
QMenu myFilesLlistMenu;
|
||||
QModelIndexList selectedRows = filesList->selectionModel()->selectedRows(0);
|
||||
if (selectedRows.empty())
|
||||
return;
|
||||
QMenu myFilesLlistMenu;
|
||||
QAction *actOpen = 0;
|
||||
QAction *actOpenContainingFolder = 0;
|
||||
QAction *actRename = 0;
|
||||
|
|
Loading…
Reference in a new issue