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")); });