Browse Source

- Fixed a little bug in last commit

adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
1b93f4eaf1
  1. 5
      src/GUI.cpp

5
src/GUI.cpp

@ -533,7 +533,10 @@ void GUI::dropEvent(QDropEvent *event) { @@ -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…
Cancel
Save