aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webview.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2019-02-06 21:58:33 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2019-02-06 21:58:33 +0200
commite3e178e07c58f78eaa7066a64d2e6dd9acd66bd3 (patch)
treed172099b638563118a2df7d313fc96db72dd4889 /src/webengine/webview.cpp
parentFix all profiles being created off-the-record (diff)
downloadsmolbote-e3e178e07c58f78eaa7066a64d2e6dd9acd66bd3.tar.xz
Use spdlog for logging
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();