aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-02-27 16:02:49 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-02-27 16:02:49 +0100
commit5b75e14696c9d0452e6e393b61ccf74399665d64 (patch)
tree1d579e0799fe773fd978519669703b741f77438f /src/mainwindow.cpp
parentinstalling config file (diff)
downloadsmolbote-5b75e14696c9d0452e6e393b61ccf74399665d64.tar.xz
Fixed crash when closing the first tab
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);