use QUrl::fromLocalFile
This commit is contained in:
parent
13a1d26d96
commit
528ae1ff31
1 changed files with 1 additions and 2 deletions
|
@ -99,8 +99,7 @@ MainWindow::MainWindow()
|
||||||
for (auto location : locations) {
|
for (auto location : locations) {
|
||||||
if (QFile::exists(location + QString("/Benutzerhandbuch.pdf"))) {
|
if (QFile::exists(location + QString("/Benutzerhandbuch.pdf"))) {
|
||||||
QDesktopServices::openUrl(
|
QDesktopServices::openUrl(
|
||||||
QUrl(QString("file:///") + location + QString("/Benutzerhandbuch.pdf"),
|
QUrl::fromLocalFile(location + QString("/Benutzerhandbuch.pdf")));
|
||||||
QUrl::TolerantMode));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue