Mercurial > trustbridge
diff ui/mainwindow.cpp @ 966:9783e32e215f
(issue89) Use platform specific help url.
Windows needs the file prefix to detect that c:/ is meant to
be a local file.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 28 Aug 2014 12:56:56 +0200 |
parents | 013ca910589a |
children | c80777457133 |
line wrap: on
line diff
--- a/ui/mainwindow.cpp Thu Aug 28 12:56:02 2014 +0200 +++ b/ui/mainwindow.cpp Thu Aug 28 12:56:56 2014 +0200 @@ -1435,7 +1435,11 @@ QMessageBox::warning(this, tr("Error!"), tr ("Failed to find the manual")); return; } +#ifdef Q_OS_WIN + QDesktopServices::openUrl(QUrl("file:///" + fiHelp.absoluteFilePath())); +#else QDesktopServices::openUrl(QUrl(fiHelp.absoluteFilePath())); +#endif free (inst_dir); return; }