mirror of https://github.com/CGAL/cgal
Fix: allow the drap&drop of a collection of files, and open all of them...
... instead of opening only the first one.
This commit is contained in:
parent
fc95783370
commit
e3cb421cd2
|
|
@ -91,8 +91,10 @@ DemosMainWindow::dragEnterEvent(QDragEnterEvent *event)
|
|||
void
|
||||
DemosMainWindow::dropEvent(QDropEvent *event)
|
||||
{
|
||||
QString filename = event->mimeData()->urls().at(0).toLocalFile();
|
||||
this->open(filename);
|
||||
Q_FOREACH(QUrl url, event->mimeData()->urls()) {
|
||||
QString filename = url.toLocalFile();
|
||||
this->open(filename);
|
||||
}
|
||||
event->acceptProposedAction();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue