aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webengine/webview.cpp')
-rw-r--r--src/webengine/webview.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp
index 5e350eb..5c9ab26 100644
--- a/src/webengine/webview.cpp
+++ b/src/webengine/webview.cpp
@@ -87,10 +87,7 @@ void WebView::search(const QString &term)
WebView *WebView::createWindow(QWebEnginePage::WebWindowType type)
{
- if(m_parentWindow == nullptr) {
- qDebug("WebView::createWindow: parent window not found, returning nullptr");
- return nullptr;
- }
+ Q_CHECK_PTR(m_parentWindow);
// parent Window has been found
auto index = m_parentWindow->addTab();