Skip to content

Commit

Permalink
Set the most accurate User Manual page to Options tabs
Browse files Browse the repository at this point in the history
Because some of the tabs in Options dialog have a dedicated chapter where they are fully described, better use those links instead of the global one.
  • Loading branch information
DelazJ authored and nyalldawson committed Sep 23, 2017
1 parent 9e36fd9 commit 34b9ae2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/app/qgsoptions.cpp
Expand Up @@ -2354,5 +2354,20 @@ void QgsOptions::setZoomFactorValue()

void QgsOptions::showHelp()
{
QgsHelp::openHelp( QStringLiteral( "introduction/qgis_configuration.html#options" ) );
QWidget *activeTab = mOptionsStackedWidget->currentWidget();
QString link = QStringLiteral( "introduction/qgis_configuration.html" );

if ( activeTab == mOptionsPageAuth )
{
link = QStringLiteral( "auth_system/index.html" );
}
else if ( activeTab == mOptionsPageVariables )
{
link = QStringLiteral( "introduction/general_tools.html#variables" );
}
else if ( activeTab == mOptionsPageCRS )
{
link = QStringLiteral( "working_with_projections/working_with_projections.html" );
}
QgsHelp::openHelp( link );
}

0 comments on commit 34b9ae2

Please sign in to comment.