aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 30751d5..18c1e14 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -203,6 +203,8 @@ void MainWindow::handleNewWindow(const QUrl &url)
void MainWindow::handleTabChanged(WebView *view)
{
+ Q_ASSERT(view);
+
// clear the parent of the central widget so it doesn't get deleted
centralWidget()->setParent(0);