1
0
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:
Christophe Dumez 2007-09-02 13:23:02 +00:00
parent 685ceafc5b
commit 1b93f4eaf1

View File

@ -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"));