Skip to content
Permalink
Browse files

log requested help URLs

  • Loading branch information
alexbruy committed Feb 11, 2018
1 parent dd3ba34 commit a71912b07490d0e5bc3486af06dec44874631382
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/qgshelp.cpp
@@ -19,6 +19,7 @@
#include "qgssettings.h"
#include "qgsapplication.h"
#include "qgsexpressioncontext.h"
#include "qgsmessagelog.h"

#include <QUrl>
#include <QFileInfo>
@@ -73,6 +74,8 @@ QUrl QgsHelp::helpUrl( const QString &key )

helpPath = QStringLiteral( "%1/%2" ).arg( fullPath, key );

QgsMessageLog::logMessage( QObject::tr( "Trying to open help from '%1'…" ).arg( helpPath ), QObject::tr( "QGIS Help" ), Qgis::Info );

if ( helpPath.startsWith( QStringLiteral( "http" ) ) )
{
if ( !QgsHelp::urlExists( helpPath ) )

0 comments on commit a71912b

Please sign in to comment.
You can’t perform that action at this time.