mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 21:14:33 +00:00
- Fixed a little bug in last commit
This commit is contained in:
parent
685ceafc5b
commit
1b93f4eaf1
@ -533,7 +533,10 @@ void GUI::dropEvent(QDropEvent *event) {
|
|||||||
QList<QUrl> urls = event->mimeData()->urls();
|
QList<QUrl> urls = event->mimeData()->urls();
|
||||||
QUrl url;
|
QUrl url;
|
||||||
foreach(url, urls) {
|
foreach(url, urls) {
|
||||||
files << url.toString();
|
QString tmp = url.toString();
|
||||||
|
tmp.trimmed();
|
||||||
|
if(!tmp.isEmpty())
|
||||||
|
files << url.toString();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
files = event->mimeData()->text().split(QString::fromUtf8("\n"));
|
files = event->mimeData()->text().split(QString::fromUtf8("\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user