From e38de510a0d02ab0335f5b83100c7ad739b2e050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Tue, 27 Aug 2024 13:17:53 +0200 Subject: [PATCH] Open also file:// --- mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index b848a71..de67fd5 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -283,7 +283,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) args.removeFirst(); for(auto &arg : args) { - QFileInfo info(arg); + QUrl url(arg); + QFileInfo info(url.isLocalFile() ? url.toLocalFile() : arg); if(info.exists()) { m_ringList->setFile(info.canonicalFilePath());