mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix:Plug in moves to recycle bin to change the order of recycle bin icons
插件移动到回收站可以改变回收站图标顺序 bug:12948
This commit is contained in:
parent
c305f89037
commit
13fdb61973
@ -98,6 +98,9 @@ void TrashWidget::invokeMenuItem(const QString &menuId, const bool checked)
|
||||
|
||||
void TrashWidget::dragEnterEvent(QDragEnterEvent *e)
|
||||
{
|
||||
if (!e->mimeData()->hasUrls())
|
||||
return e->ignore();
|
||||
|
||||
if (e->mimeData()->hasFormat("RequestDock")) {
|
||||
// accept prevent the event from being propgated to the dock main panel
|
||||
// which also takes drag event;
|
||||
@ -111,9 +114,6 @@ void TrashWidget::dragEnterEvent(QDragEnterEvent *e)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!e->mimeData()->hasUrls())
|
||||
e->ignore();
|
||||
|
||||
e->setDropAction(Qt::MoveAction);
|
||||
|
||||
if (e->dropAction() != Qt::MoveAction) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user