Skip to content

Commit

Permalink
Freeze project load freeze when a layout contains an HTML item
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Jan 31, 2021
1 parent aeade2b commit 146043a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgswebframe.h
Expand Up @@ -61,6 +61,7 @@ class CORE_EXPORT QWebFrame : public QObject
{
Q_UNUSED( html )
Q_UNUSED( url )
emit loadFinished( true );
}

QSize contentsSize() const
Expand All @@ -84,6 +85,8 @@ class CORE_EXPORT QWebFrame : public QObject
}

signals:
void loadFinished( bool ok );

void javaScriptWindowObjectCleared();
/// @endcond
};
Expand Down
1 change: 1 addition & 0 deletions src/core/qgswebpage.h
Expand Up @@ -125,6 +125,7 @@ class CORE_EXPORT QWebPage : public QObject
, mSettings( new QWebSettings() )
, mFrame( new QWebFrame() )
{
connect( mFrame, &QWebFrame::loadFinished, this, &QWebPage::loadFinished );
}

~QWebPage()
Expand Down

0 comments on commit 146043a

Please sign in to comment.