diff options
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 8e0a6eb4..f614df2a 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -481,10 +481,10 @@ void MainView::closeTab(int index) } } - QWidget *webView = this->webTab(index); + QWidget *webTab = this->webTab(index); removeTab(index); updateTabBar(); // UI operation: do it ASAP!! - webView->deleteLater(); // webView is scheduled for deletion. + delete webTab; // webView is scheduled for deletion. emit tabsChanged(); |