chore: correct typos in trashwidget.cpp

Correct typos in trashwidget.cpp
This commit is contained in:
Felix Yan 2023-02-21 15:49:36 +02:00 committed by Tsic
parent 7320406161
commit 2cb2a682c6

View File

@ -86,11 +86,11 @@ void TrashWidget::invokeMenuItem(const QString &menuId, const bool checked)
void TrashWidget::dragEnterEvent(QDragEnterEvent *e)
{
if (e->mimeData()->hasFormat("RequestDock")) {
// accept prevent the event from being propgated to the dock main panel
// accept prevent the event from being propagated to the dock main panel
// which also takes drag event;
if (!e->mimeData()->hasFormat("Removable")) {
// show the forbit dropping cursor.
// show the forbid dropping cursor.
e->setDropAction(Qt::IgnoreAction);
} else {
e->setDropAction(Qt::MoveAction);