Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
965:013ca910589a | 966:9783e32e215f |
---|---|
1433 qDebug() << "Opening help: " << fiHelp.absoluteFilePath(); | 1433 qDebug() << "Opening help: " << fiHelp.absoluteFilePath(); |
1434 if (!fiHelp.exists()) { | 1434 if (!fiHelp.exists()) { |
1435 QMessageBox::warning(this, tr("Error!"), tr ("Failed to find the manual")); | 1435 QMessageBox::warning(this, tr("Error!"), tr ("Failed to find the manual")); |
1436 return; | 1436 return; |
1437 } | 1437 } |
1438 #ifdef Q_OS_WIN | |
1439 QDesktopServices::openUrl(QUrl("file:///" + fiHelp.absoluteFilePath())); | |
1440 #else | |
1438 QDesktopServices::openUrl(QUrl(fiHelp.absoluteFilePath())); | 1441 QDesktopServices::openUrl(QUrl(fiHelp.absoluteFilePath())); |
1442 #endif | |
1439 free (inst_dir); | 1443 free (inst_dir); |
1440 return; | 1444 return; |
1441 } | 1445 } |