diff --git a/src/lib/webengine/webpage.cpp b/src/lib/webengine/webpage.cpp index e65ec646b..4df1a402e 100644 --- a/src/lib/webengine/webpage.cpp +++ b/src/lib/webengine/webpage.cpp @@ -318,6 +318,8 @@ void WebPage::setupWebChannel() void WebPage::windowCloseRequested() { + if (!view()) + return; view()->closeView(); }