From a6d6ebb99a4025bcef774b8540c1191345d650f6 Mon Sep 17 00:00:00 2001 From: jzxc95 <907297917@qq.com> Date: Wed, 3 Nov 2021 11:54:21 +0800 Subject: [PATCH] add lamda --- plugins/netconnect/netconnect.cpp | 2 +- plugins/wlanconnect/wlanconnect.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/netconnect/netconnect.cpp b/plugins/netconnect/netconnect.cpp index cb61a262..a0cffbfe 100644 --- a/plugins/netconnect/netconnect.cpp +++ b/plugins/netconnect/netconnect.cpp @@ -167,7 +167,7 @@ void NetConnect::initComponent() { ui->openWIifLayout->addWidget(wiredSwitch); ui->detailLayOut->setContentsMargins(MAIN_LAYOUT_MARGINS); - connect(wiredSwitch, &SwitchButton::disabledClick, this, []() { + connect(wiredSwitch, &SwitchButton::disabledClick, this, [=]() { showDesktopNotify(tr("No ethernet device avaliable")); }); diff --git a/plugins/wlanconnect/wlanconnect.cpp b/plugins/wlanconnect/wlanconnect.cpp index 297d64ed..089c1ec3 100644 --- a/plugins/wlanconnect/wlanconnect.cpp +++ b/plugins/wlanconnect/wlanconnect.cpp @@ -178,7 +178,7 @@ void WlanConnect::initComponent() { ui->openWIifLayout->addWidget(wifiSwtch); ui->detailLayOut_3->setContentsMargins(MAIN_LAYOUT_MARGINS); - connect(wifiSwtch, &SwitchButton::disabledClick, this, []() { + connect(wifiSwtch, &SwitchButton::disabledClick, this, [=]() { showDesktopNotify(tr("No wireless network card detected")); });