Browse Source

Capture pointer by value

adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
62b0d25140
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/properties/propertieswidget.cpp

2
src/gui/properties/propertieswidget.cpp

@ -640,7 +640,7 @@ void PropertiesWidget::displayFilesListMenu(const QPoint &) @@ -640,7 +640,7 @@ void PropertiesWidget::displayFilesListMenu(const QPoint &)
// The selected torrent might have disappeared during exec()
// so we just close menu when an appropriate model is reset
connect(m_ui->filesList->model(), &QAbstractItemModel::modelAboutToBeReset
, menu, [&menu]()
, menu, [menu]()
{
menu->setActiveAction(nullptr);
menu->close();

Loading…
Cancel
Save