aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-01-02 08:55:32 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-01-09 17:00:12 -0700
commita4870d4834f627f6c730d7b72237d7357aeacc8f (patch)
tree5864956e1326ba86e3fc9e6da60effb72605922b /launcher/ui
parent30b01ef053df670dc2d1912d88a8e9ded46c3c5e (diff)
downloadPrismLauncher-a4870d4834f627f6c730d7b72237d7357aeacc8f.tar.gz
PrismLauncher-a4870d4834f627f6c730d7b72237d7357aeacc8f.tar.bz2
PrismLauncher-a4870d4834f627f6c730d7b72237d7357aeacc8f.zip
fix: fix #700
fixed by properly converting from a file path and converting to native seperators. should have known naive handling of file path as a URL would come back to bite us cross platform. Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/ui')
-rw-r--r--launcher/ui/MainWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index 6412728a..d5aa4c1a 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -1827,7 +1827,7 @@ void MainWindow::processURLs(QList<QUrl> urls)
break;
}
- auto localFileName = url.toLocalFile();
+ auto localFileName = QDir::toNativeSeparators(url.toLocalFile()) ;
QFileInfo localFileInfo(localFileName);
auto type = ResourceUtils::identify(localFileInfo);