diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-02-27 16:02:49 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-02-27 16:02:49 +0100 |
commit | 5b75e14696c9d0452e6e393b61ccf74399665d64 (patch) | |
tree | 1d579e0799fe773fd978519669703b741f77438f /src/mainwindow.cpp | |
parent | installing config file (diff) | |
download | smolbote-5b75e14696c9d0452e6e393b61ccf74399665d64.tar.xz |
Fixed crash when closing the first tab
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 2 |
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); |