mirror of https://github.com/CGAL/cgal
Bug fix: the drop event's url was not interpreted correctly.
This commit is contained in:
parent
e8cfeb63e3
commit
2dd6a8aaa7
|
|
@ -62,7 +62,7 @@ void MainWindow::dragEnterEvent(QDragEnterEvent *event)
|
|||
|
||||
void MainWindow::dropEvent(QDropEvent *event)
|
||||
{
|
||||
QString filename = event->mimeData()->urls().at(0).path();
|
||||
QString filename = event->mimeData()->urls().at(0).toLocalFile();
|
||||
surface_open(filename);
|
||||
event->acceptProposedAction();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue