aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-03-23 08:37:02 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-03-23 08:37:02 +0800
commit45c5116353986d13f886ff7398dcb34b878c6cea (patch)
treefc0c7f3894e97c98dfde1f52983a74eb62f5cf21
parent6015dccd4a839d46749a3bf7c0e45263ac8870ca (diff)
downloadQMidiPlayer-45c5116353986d13f886ff7398dcb34b878c6cea.tar.xz
Judas Kiss. (This should fix #1)
-rw-r--r--qmpmainwindow.cpp2
-rw-r--r--qmpplistwindow.cpp2
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)