Skip to content

Commit

Permalink
fix: access nullptr when themeType changed
Browse files Browse the repository at this point in the history
SniTrayProtocolHandler may be destroyed ,but it's conection is
active.
  • Loading branch information
18202781743 authored and deepin-bot[bot] committed Jan 22, 2025
1 parent 9fc007b commit abf0dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/application-tray/sniprotocolhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ SniTrayProtocolHandler::SniTrayProtocolHandler(const QString &sniServicePath, QO
connect(m_sniInter, &StatusNotifierItem::NewTitle, this, &SniTrayProtocolHandler::titleChanged);
connect(m_sniInter, &StatusNotifierItem::NewStatus, this, &SniTrayProtocolHandler::statusChanged);
connect(m_sniInter, &StatusNotifierItem::NewToolTip, this, &SniTrayProtocolHandler::tooltiChanged);
connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, [this](DGuiApplicationHelper::ColorType themeType) {
connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, [this](DGuiApplicationHelper::ColorType themeType) {
m_dbusMenuImporter->updateMenu(true);
});
}
Expand Down

0 comments on commit abf0dd4

Please sign in to comment.