diff options
-rw-r--r-- | qmpmainwindow.cpp | 2 | ||||
-rw-r--r-- | qmpplistwindow.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qmpmainwindow.cpp b/qmpmainwindow.cpp index 35dd3ee..3220c13 100644 --- a/qmpmainwindow.cpp +++ b/qmpmainwindow.cpp @@ -135,7 +135,7 @@ void qmpMainWindow::dropEvent(QDropEvent *event) QList<QUrl> l=event->mimeData()->urls(); QStringList sl; for(int i=0;i<l.size();++i) - sl.push_back(l.at(i).path()); + sl.push_back(l.at(i).toLocalFile()); plistw->insertItems(sl); } void qmpMainWindow::dragEnterEvent(QDragEnterEvent *event) diff --git a/qmpplistwindow.cpp b/qmpplistwindow.cpp index 27704d8..8f04fc1 100644 --- a/qmpplistwindow.cpp +++ b/qmpplistwindow.cpp @@ -108,7 +108,7 @@ void qmpPlistWindow::dropEvent(QDropEvent *event) QList<QUrl> l=event->mimeData()->urls(); QStringList sl; for(int i=0;i<l.size();++i) - sl.push_back(l.at(i).path()); + sl.push_back(l.at(i).toLocalFile()); insertItems(sl); } void qmpPlistWindow::dragEnterEvent(QDragEnterEvent *event) |