mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
Revert "fix: there is an empty AppItem in dock"
This reverts commit 8674c0552eb25cde29995fea37443badb3378c0f. Reason for revert: <INSERT REASONING HERE> Change-Id: I5e82127dad18ca3e04e696601ac3bb9e1386d3e1
This commit is contained in:
parent
11ad21f8d0
commit
d7a0df40ba
Notes:
gerrit
2018-12-25 16:31:26 +08:00
Verified+1: <jenkins@deepin.com> Code-Review+2: listenerri <listenerri@gmail.com> Submitted-by: listenerri <listenerri@gmail.com> Submitted-at: Tue, 25 Dec 2018 16:31:25 +0800 Reviewed-on: https://cr.deepin.io/40865 Project: dde/dde-dock Branch: refs/heads/master
@ -288,13 +288,12 @@ void DockItemController::appItemRemoved(const QString &appId)
|
||||
continue;
|
||||
|
||||
AppItem *app = static_cast<AppItem *>(m_itemList[i].data());
|
||||
qDebug() << ">>>>>>>>>>>>>>>>>>>>>>>>" << app << app->appId();
|
||||
if (!app) {
|
||||
if (!app || app->appId() != appId)
|
||||
continue;
|
||||
}
|
||||
if (app->appId().isEmpty() || app->appId() == appId) {
|
||||
appItemRemoved(app);
|
||||
}
|
||||
|
||||
appItemRemoved(app);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user