fix: identify launcher icon.

Change-Id: I2126addf235c127712ce8d0f117954c8ac9910fc
This commit is contained in:
rekols 2018-05-18 14:17:30 +08:00
parent 0bf5934c6a
commit a6b87571c6
Notes: gerrit 2018-05-21 10:13:15 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: sbwtw <sbw@sbw.so>
Submitted-by: rekols <rekols@foxmail.com>
Submitted-at: Mon, 21 May 2018 10:13:15 +0800
Reviewed-on: https://cr.deepin.io/34840
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -92,7 +92,7 @@ void DockItemController::itemMove(DockItem * const moveItem, DockItem * const re
const DockItem::ItemType replaceType = replaceItem->itemType();
// app move
if (moveType == DockItem::App)
if (moveType == DockItem::App || moveType == DockItem::Placeholder)
if (replaceType != DockItem::App && replaceType != DockItem::Stretch)
return;