add lamda
This commit is contained in:
parent
0be90ace26
commit
a6d6ebb99a
|
@ -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"));
|
||||
});
|
||||
|
||||
|
|
|
@ -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"));
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue