diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2009-12-17 16:49:15 +0100 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2009-12-17 16:49:15 +0100 |
commit | a0245069cf175d4657913e4cbf2898fe4e31281f (patch) | |
tree | bb52cd481d4678764590cf5824913eb7420e93bf /src/mainview.cpp | |
parent | not sure about this.. (diff) | |
download | rekonq-a0245069cf175d4657913e4cbf2898fe4e31281f.tar.xz |
fix crashes webtabs
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(); |