Skip to content
Permalink
Browse files
[trivial] allows building with QTWebKit disabled
  • Loading branch information
espinafre authored and nyalldawson committed Aug 16, 2021
1 parent a0507ee commit e81415c4f258af76719ba98b42c5c72f213e06a4
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/qgsexternalresourcewidget.cpp
@@ -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();
@@ -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 );

0 comments on commit e81415c

Please sign in to comment.