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) {
|
||||
if (QFile::exists(location + QString("/Benutzerhandbuch.pdf"))) {
|
||||
QDesktopServices::openUrl(
|
||||
QUrl(QString("file:///") + location + QString("/Benutzerhandbuch.pdf"),
|
||||
QUrl::TolerantMode));
|
||||
QUrl::fromLocalFile(location + QString("/Benutzerhandbuch.pdf")));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue