mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Capture pointer by value
This commit is contained in:
parent
48e7191ef7
commit
62b0d25140
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue