Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/ddeintegration/appmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,15 @@ void AppMgr::watchingAppItemAdded(const QString &key, AppItem *appItem)

void AppMgr::watchingAppItemRemoved(const QString &key)
{
// Check if the item is in pending container
if (m_pendingAppItems.contains(key)) {
auto pendingAppItem = m_pendingAppItems.value(key);
qCDebug(logDdeIntegration) << "Removing pending app item, desktopId" << pendingAppItem->id;
m_pendingAppItems.remove(key);
delete pendingAppItem;
return;
}

auto appItem = m_appItems.value(key);
if (!appItem) {
qCWarning(logDdeIntegration) << "App item not found for key:" << key;
Expand Down