Skip to content
Permalink
Browse files

Set the most accurate User Manual page to Options tabs

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 34b9ae293d293b5442d821a981fef648442662ea
Showing with 16 additions and 1 deletion.
  1. +16 −1 src/app/qgsoptions.cpp
@@ -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.
You can’t perform that action at this time.