From cfef01de3919e836f92a434608f7794bbc4e2c96 Mon Sep 17 00:00:00 2001 From: demmm Date: Wed, 21 Dec 2016 15:20:05 -0500 Subject: [PATCH] fix crash on loading webview page with QtWebengine --- src/modules/webview/WebViewStep.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/webview/WebViewStep.cpp b/src/modules/webview/WebViewStep.cpp index b1d50bf7c..76bee9a46 100644 --- a/src/modules/webview/WebViewStep.cpp +++ b/src/modules/webview/WebViewStep.cpp @@ -25,6 +25,7 @@ #include #else #include +#include #endif CALAMARES_PLUGIN_FACTORY_DEFINITION( WebViewStepFactory, registerPlugin(); ) @@ -33,6 +34,9 @@ WebViewStep::WebViewStep( QObject* parent ) : Calamares::ViewStep( parent ) { emit nextStatusChanged( true ); + #ifdef WEBVIEW_WITH_WEBENGINE + QtWebEngine::initialize(); + #endif m_view = new C_QWEBVIEW(); #ifdef WEBVIEW_WITH_WEBKIT m_view->settings()->setFontFamily( QWebSettings::StandardFont,