opening manual on windows works
This commit is contained in:
parent
a196e49410
commit
2561b03583
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ MainWindow::MainWindow()
|
||||||
auto locations = QStandardPaths::standardLocations(QStandardPaths::DataLocation);
|
auto locations = QStandardPaths::standardLocations(QStandardPaths::DataLocation);
|
||||||
for (auto location : locations) {
|
for (auto location : locations) {
|
||||||
if (QFile::exists(location + QString("/Benutzerhandbuch.pdf"))) {
|
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();
|
writeGeometry();
|
||||||
event->accept();
|
event->accept();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue