diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c685a2b98..22d0c62c0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -887,7 +887,7 @@ void MainWindow::AddMedia() { const SongList& songs = parser.Parse(); playlist_->InsertSongs(songs); } else { - QUrl url(path); + QUrl url(QUrl::fromLocalFile(path)); if (url.scheme().isEmpty()) url.setScheme("file"); urls << url;