[PATCH 4 of 6] (issue89) Use platform specific help url
Wald Commits
scm-commit at wald.intevation.org
Thu Aug 28 12:57:42 CEST 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1409223416 -7200
# Node ID 9783e32e215fe9a2dce4287ff72ccd019c8da3c6
# Parent 013ca910589a8e3959475281224bfa00b9371dfd
(issue89) Use platform specific help url.
Windows needs the file prefix to detect that c:/ is meant to
be a local file.
diff -r 013ca910589a -r 9783e32e215f ui/mainwindow.cpp
--- 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;
}
More information about the Trustbridge-commits
mailing list