mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +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();
|
||||
QUrl url;
|
||||
foreach(url, urls) {
|
||||
files << url.toString();
|
||||
QString tmp = url.toString();
|
||||
tmp.trimmed();
|
||||
if(!tmp.isEmpty())
|
||||
files << url.toString();
|
||||
}
|
||||
} else {
|
||||
files = event->mimeData()->text().split(QString::fromUtf8("\n"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user