Skip to content

Commit

Permalink
[trivial] allows building with QTWebKit disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
espinafre authored and nyalldawson committed Aug 16, 2021
1 parent a0507ee commit e81415c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsexternalresourcewidget.cpp
Expand Up @@ -322,7 +322,9 @@ void QgsExternalResourceWidget::loadDocument( const QString &path )
{
if ( content->status() == Qgis::ContentStatus::Failed )
{
#ifdef WITH_QTWEBKIT
mWebView->setVisible( false );
#endif
mPixmapLabel->setVisible( false );
mLoadingLabel->setVisible( false );
mLoadingMovie->stop();
Expand All @@ -346,7 +348,9 @@ void QgsExternalResourceWidget::loadDocument( const QString &path )
content->deleteLater();
};

#ifdef WITH_QTWEBKIT
mWebView->setVisible( false );
#endif
mPixmapLabel->setVisible( false );
mErrorLabel->setVisible( false );
mLoadingLabel->setVisible( true );
Expand Down

0 comments on commit e81415c

Please sign in to comment.