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 committed Apr 26, 2024
1 parent a8ea5e1 commit 0653e13
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 0653e13

Please sign in to comment.