mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix: unable drag desktop into dock
RequestDock dbus call, only local path passed into log: fix unable drag desktop info dock and make it docked
This commit is contained in:
parent
82caae4c83
commit
532350f48d
@ -27,6 +27,7 @@
|
||||
#include "quicksettingcontroller.h"
|
||||
|
||||
#include <QDrag>
|
||||
#include <QUrl>
|
||||
#include <QTimer>
|
||||
#include <QStandardPaths>
|
||||
#include <QString>
|
||||
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user