mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 同步启动器的修改
启动器修改了拖拽时的MimeData中的特征字段信息, 任务栏同步修改 Log: Influence: 从启动器应用列表-拖拽到任务栏-回收站-卸载应用功能正常 Bug: https://pms.uniontech.com/bug-view-147753.html Change-Id: Ic8ab1ed87d40807b0a74e7db0cc84d06c8dabcb0
This commit is contained in:
parent
8e241834e0
commit
9abab8ed1b
@ -162,7 +162,7 @@ void TrashWidget::dragLeaveEvent(QDragLeaveEvent *e)
|
||||
void TrashWidget::dropEvent(QDropEvent *e)
|
||||
{
|
||||
if (e->mimeData()->hasFormat("RequestDock"))
|
||||
return removeApp(e->mimeData()->data("AppKey"));
|
||||
return removeApp(e->mimeData()->data("DesktopPath"));
|
||||
|
||||
if (!e->mimeData()->hasUrls()) {
|
||||
return e->ignore();
|
||||
|
Loading…
x
Reference in New Issue
Block a user