Skip to content

Commit

Permalink
[layout] Fix html item freeze QGIS when loading HTML undet Qt6/QtWebk…
Browse files Browse the repository at this point in the history
…it-less environments
  • Loading branch information
nirvn authored and github-actions[bot] committed May 1, 2024
1 parent 4a00c6d commit e691fd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/layout/qgslayoutitemhtml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ void QgsLayoutItemHtml::loadHtml( const bool useCache, const QgsExpressionContex
if ( !loaded )
loop.exec( QEventLoop::ExcludeUserInputEvents );

#ifdef WITH_QTWEBKIT
//inject JSON feature
if ( !mAtlasFeatureJSON.isEmpty() )
{
Expand All @@ -251,6 +252,7 @@ void QgsLayoutItemHtml::loadHtml( const bool useCache, const QgsExpressionContex

jsLoop.execIfNotDone();
}
#endif

recalculateFrameSizes();
//trigger a repaint
Expand Down

0 comments on commit e691fd5

Please sign in to comment.