opening manual on windows works

This commit is contained in:
Martin Brodbeck 2018-08-08 08:19:19 +02:00
parent a196e49410
commit 2561b03583
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ MainWindow::MainWindow()
auto locations = QStandardPaths::standardLocations(QStandardPaths::DataLocation);
for (auto location : locations) {
if (QFile::exists(location + QString("/Benutzerhandbuch.pdf"))) {
QDesktopServices::openUrl(location + QString("/Benutzerhandbuch.pdf"));
QDesktopServices::openUrl(QUrl(QString("file:///") + location + QString("/Benutzerhandbuch.pdf"), QUrl::TolerantMode));
}
}
});
@ -391,4 +391,4 @@ void MainWindow::closeEvent(QCloseEvent* event)
{
writeGeometry();
event->accept();
}
}