use QUrl::fromLocalFile

This commit is contained in:
Martin Brodbeck 2023-04-26 12:46:35 +02:00
parent 13a1d26d96
commit 528ae1ff31
1 changed files with 1 additions and 2 deletions

View File

@ -99,8 +99,7 @@ MainWindow::MainWindow()
for (auto location : locations) {
if (QFile::exists(location + QString("/Benutzerhandbuch.pdf"))) {
QDesktopServices::openUrl(
QUrl(QString("file:///") + location + QString("/Benutzerhandbuch.pdf"),
QUrl::TolerantMode));
QUrl::fromLocalFile(location + QString("/Benutzerhandbuch.pdf")));
}
}
});