32 lines
1.4 KiB
Plaintext
32 lines
1.4 KiB
Plaintext
$OpenBSD: patch-src_app_qgisapp_cpp,v 1.10 2016/03/29 15:09:52 landry Exp $
|
|
Fix paths to docs
|
|
--- src/app/qgisapp.cpp.orig Fri Mar 25 13:17:01 2016
|
|
+++ src/app/qgisapp.cpp Tue Mar 29 14:24:04 2016
|
|
@@ -1527,7 +1527,7 @@ void QgisApp::createActions()
|
|
mActionReportaBug->setShortcut( QString() );
|
|
#endif
|
|
|
|
- mActionHelpContents->setEnabled( QFileInfo( QgsApplication::pkgDataPath() + "/doc/index.html" ).exists() );
|
|
+ mActionHelpContents->setEnabled( QFileInfo( QgsApplication::pkgDataPath() + "/../doc/qgis/index.html" ).exists() );
|
|
|
|
connect( mActionHelpContents, SIGNAL( triggered() ), this, SLOT( helpContents() ) );
|
|
connect( mActionHelpAPI, SIGNAL( triggered() ), this, SLOT( apiDocumentation() ) );
|
|
@@ -8528,7 +8528,7 @@ void QgisApp::helpContents()
|
|
|
|
void QgisApp::apiDocumentation()
|
|
{
|
|
- if ( QFileInfo( QgsApplication::pkgDataPath() + "/doc/api/index.html" ).exists() )
|
|
+ if ( QFileInfo( QgsApplication::pkgDataPath() + "/../doc/qgis/api/index.html" ).exists() )
|
|
{
|
|
openURL( "api/index.html" );
|
|
}
|
|
@@ -8557,7 +8557,7 @@ void QgisApp::openURL( QString url, bool useQgisDocDir
|
|
// open help in user browser
|
|
if ( useQgisDocDirectory )
|
|
{
|
|
- url = "file://" + QgsApplication::pkgDataPath() + "/doc/" + url;
|
|
+ url = "file://" + QgsApplication::pkgDataPath() + "/../doc/qgis/" + url;
|
|
}
|
|
#ifdef Q_OS_MACX
|
|
/* Use Mac OS X Launch Services which uses the user's default browser
|