From 62b0d251406657fda3e4a3bc9b1ff2656e3a1ace Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 7 Mar 2020 10:06:35 +0800 Subject: [PATCH] Capture pointer by value --- src/gui/properties/propertieswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index dd766a226..8698c6e7e 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -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();