opening manual on windows works

This commit is contained in:
Martin Brodbeck 2018-08-08 08:19:19 +02:00
parent a196e49410
commit 2561b03583

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));
}
}
});