fix:Plug in moves to recycle bin to change the order of recycle bin icons

插件移动到回收站可以改变回收站图标顺序 bug:12948
This commit is contained in:
chenzhe 2020-01-20 12:43:31 +08:00
parent c305f89037
commit 13fdb61973

View File

@ -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) {