Bug fix: the drop event's url was not interpreted correctly.

This commit is contained in:
Laurent Rineau 2010-08-13 14:31:14 +00:00
parent e8cfeb63e3
commit 2dd6a8aaa7
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}