From 5b75e14696c9d0452e6e393b61ccf74399665d64 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 27 Feb 2017 16:02:49 +0100 Subject: Fixed crash when closing the first tab --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mainwindow.cpp') 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); -- cgit v1.2.1