diff --git a/frame/window/mainpanelcontrol.cpp b/frame/window/mainpanelcontrol.cpp index a74b1da87..f8ca2aed5 100644 --- a/frame/window/mainpanelcontrol.cpp +++ b/frame/window/mainpanelcontrol.cpp @@ -27,6 +27,7 @@ #include "quicksettingcontroller.h" #include +#include #include #include #include @@ -483,7 +484,9 @@ void MainPanelControl::dropEvent(QDropEvent *e) { if (m_placeholderItem) { - emit itemAdded(e->mimeData()->data(m_draggingMimeKey), m_appAreaSonLayout->indexOf(m_placeholderItem)); + QUrl desktopPath = QUrl::fromUserInput(e->mimeData()->data(m_draggingMimeKey)); + + emit itemAdded(desktopPath.toLocalFile(), m_appAreaSonLayout->indexOf(m_placeholderItem)); removeAppAreaItem(m_placeholderItem); m_placeholderItem->deleteLater();