1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-05 11:24:15 +00:00

Merge pull request #1983 from sorokin/buffer-overrun-prop-widget

Fix heap-buffer-overrun in PropertiesWidget::displayFilesListMenu
This commit is contained in:
sledgehammer999 2014-10-01 22:53:30 +03:00
commit e3d079ccb3

View File

@ -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;