Skip to content

Commit

Permalink
fix: SessionShell crashed
Browse files Browse the repository at this point in the history
  IconButton maybe be release by other.

Issue: linuxdeepin/developer-center#4151
  • Loading branch information
18202781743 committed Apr 20, 2023
1 parent 141b7f0 commit 3525f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dss-network-plugin/network_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ QWidget *NetworkPlugin::itemWidget() const
iconButton->setAttribute(Qt::WA_TransparentForMouseEvents);
iconButton->setIconSize({26, 26});
iconButton->setIcon(*helper->trayIcon());
connect(helper, &NetworkPluginHelper::iconChanged, helper, [helper, iconButton] {
connect(helper, &NetworkPluginHelper::iconChanged, iconButton, [helper, iconButton] {
iconButton->setIcon(*helper->trayIcon());
});
NotificationManager::InstallEventFilter(iconButton);
Expand Down

0 comments on commit 3525f44

Please sign in to comment.