mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Fix heap-buffer-overrun in PropertiesWidget::displayFilesListMenu
This commit is contained in:
parent
67355810ae
commit
f97238e1c9
1 changed files with 3 additions and 1 deletions
|
@ -453,8 +453,10 @@ void PropertiesWidget::openFolder(const QModelIndex &index, bool containing_fold
|
||||||
void PropertiesWidget::displayFilesListMenu(const QPoint&) {
|
void PropertiesWidget::displayFilesListMenu(const QPoint&) {
|
||||||
if (!h.is_valid())
|
if (!h.is_valid())
|
||||||
return;
|
return;
|
||||||
QMenu myFilesLlistMenu;
|
|
||||||
QModelIndexList selectedRows = filesList->selectionModel()->selectedRows(0);
|
QModelIndexList selectedRows = filesList->selectionModel()->selectedRows(0);
|
||||||
|
if (selectedRows.empty())
|
||||||
|
return;
|
||||||
|
QMenu myFilesLlistMenu;
|
||||||
QAction *actOpen = 0;
|
QAction *actOpen = 0;
|
||||||
QAction *actOpenContainingFolder = 0;
|
QAction *actOpenContainingFolder = 0;
|
||||||
QAction *actRename = 0;
|
QAction *actRename = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue