Skip to content

Commit 2d0d9ed

Browse files
ut003640deepin-bot[bot]
authored andcommitted
fix: 修复更新信号崩溃
在Qt6中,使用lambda作为槽函数,不能使用Qt::UniqueConnection,会导致崩溃 Log: Influence: 更新信号 PMS: BUG-331547
1 parent 8e8e147 commit 2d0d9ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/impl/networkmanager/devicemanagerrealize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,8 @@ WirelessDeviceManagerRealize::WirelessDeviceManagerRealize(NetworkManager::Wirel
636636

637637
updateActiveApStrength(activeAp);
638638
m_activeApStrengthConn = connect(activeAp.data(), &NetworkManager::AccessPoint::signalStrengthChanged, this, [updateActiveApStrength, activeAp] {
639-
updateActiveApStrength(activeAp);
640-
}, Qt::UniqueConnection);
639+
updateActiveApStrength(activeAp);
640+
});
641641
};
642642

643643
connect(device.data(), &NetworkManager::WirelessDevice::activeAccessPointChanged, this, [changeActiveAp] {

0 commit comments

Comments
 (0)