1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Capture pointer by value

This commit is contained in:
Chocobo1 2020-03-07 10:06:35 +08:00
parent 48e7191ef7
commit 62b0d25140
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

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