Skip to content

Commit

Permalink
log requested help URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 11, 2018
1 parent dd3ba34 commit a71912b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/qgshelp.cpp
Expand Up @@ -19,6 +19,7 @@
#include "qgssettings.h"
#include "qgsapplication.h"
#include "qgsexpressioncontext.h"
#include "qgsmessagelog.h"

#include <QUrl>
#include <QFileInfo>
Expand Down Expand Up @@ -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 ) )
Expand Down

0 comments on commit a71912b

Please sign in to comment.