mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
- Fixed a little bug in last commit
This commit is contained in:
parent
685ceafc5b
commit
1b93f4eaf1
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue