Browse Source

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

Fix heap-buffer-overrun in PropertiesWidget::displayFilesListMenu
adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
e3d079ccb3
  1. 4
      src/properties/propertieswidget.cpp

4
src/properties/propertieswidget.cpp

@ -468,8 +468,10 @@ void PropertiesWidget::openFolder(const QModelIndex &index, bool containing_fold @@ -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…
Cancel
Save