From fa48b068719c0caf6589a636bce18869639bee9b Mon Sep 17 00:00:00 2001 From: Filippo Gentile Date: Sat, 25 Mar 2023 12:58:45 +0100 Subject: [PATCH] ObjectListWidget: pass context object to connect lambda --- client/src/widget/objectlist/objectlistwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/widget/objectlist/objectlistwidget.cpp b/client/src/widget/objectlist/objectlistwidget.cpp index c36afa44..262808f0 100644 --- a/client/src/widget/objectlist/objectlistwidget.cpp +++ b/client/src/widget/objectlist/objectlistwidget.cpp @@ -294,7 +294,7 @@ ObjectListWidget::ObjectListWidget(const ObjectPtr& object, QWidget* parent) : else text = value.toString(); - menu->addAction(text, + menu->addAction(text, this, [this, channel=value.toUInt()]() { //cancelRequest(m_requestIdInputMonitor); @@ -348,7 +348,7 @@ ObjectListWidget::ObjectListWidget(const ObjectPtr& object, QWidget* parent) : else text = value.toString(); - menu->addAction(text, + menu->addAction(text, this, [this, channel=value.toUInt()]() { //cancelRequest(m_requestIdOutputKeyboard);