Skip to content

Commit

Permalink
Fix drag-drop path
Browse files Browse the repository at this point in the history
  • Loading branch information
thorpelawrence committed Mar 16, 2018
1 parent 3b23625 commit fd5cb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void MainWindow::dragEnterEvent(QDragEnterEvent *event)

void MainWindow::dropEvent(QDropEvent *event)
{
loadImage(event->mimeData()->urls()[0].path());
loadImage(event->mimeData()->urls()[0].toLocalFile());
event-> acceptProposedAction();
}

Expand Down

0 comments on commit fd5cb7a

Please sign in to comment.