mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
Fix dropping files on app item doesn't work
Urls are not encoded correctly Change-Id: Ibd8006d9e74929a9b391a1596713de5a26413882
This commit is contained in:
parent
af7787154e
commit
e80ddef08d
Notes:
Deepin Code Review
2017-02-27 16:24:00 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: Hualet Wang <mr.asianwang@gmail.com> Submitted-at: Mon, 27 Feb 2017 16:24:00 +0800 Reviewed-on: https://cr.deepin.io/20798 Project: dde/dde-dock Branch: refs/heads/master
@ -329,10 +329,11 @@ void AppItem::dragEnterEvent(QDragEnterEvent *e)
|
||||
void AppItem::dropEvent(QDropEvent *e)
|
||||
{
|
||||
QStringList uriList;
|
||||
for (auto uri : e->mimeData()->urls())
|
||||
uriList << uri.toString();
|
||||
for (auto uri : e->mimeData()->urls()) {
|
||||
uriList << uri.toEncoded();
|
||||
}
|
||||
|
||||
// qDebug() << uriList;
|
||||
qDebug() << "accept drop event with URIs: " << uriList;
|
||||
m_itemEntry->HandleDragDrop(uriList);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user