From 2dd6a8aaa7968a5d76c6a4c7c2287afa7da53f47 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 13 Aug 2010 14:31:14 +0000 Subject: [PATCH] Bug fix: the drop event's url was not interpreted correctly. --- Surface_mesher/demo/Surface_mesher/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Surface_mesher/demo/Surface_mesher/mainwindow.cpp b/Surface_mesher/demo/Surface_mesher/mainwindow.cpp index 63a8eb2c510..52dc76ce5c0 100644 --- a/Surface_mesher/demo/Surface_mesher/mainwindow.cpp +++ b/Surface_mesher/demo/Surface_mesher/mainwindow.cpp @@ -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(); }