From 1b93f4eaf1e713a939085167425ca6d4778d45ca Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 2 Sep 2007 13:23:02 +0000 Subject: [PATCH] - Fixed a little bug in last commit --- src/GUI.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 0bfafe077..eeafc7b9c 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -533,7 +533,10 @@ void GUI::dropEvent(QDropEvent *event) { QList 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"));