Skip to content

Commit 4c5ac37

Browse files
committed
chore: disconnect right away in watchingAppItemRemoved()
避免因 handler deleteLater 被实际删除之前触发信号. Log:
1 parent e3d2205 commit 4c5ac37

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ddeintegration/appmgr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ void AppMgr::watchingAppItemRemoved(const QString &key)
514514
qCDebug(logDdeIntegration) << "App item removed, desktopId" << appItem->id;
515515
if (auto handler = appItem->handler) {
516516
qCDebug(logDdeIntegration) << "Deleting handler for removed app:" << appItem->id;
517+
handler->disconnect(this);
517518
handler->deleteLater();
518519
}
519520
m_appItems.remove(key);

0 commit comments

Comments
 (0)