summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2009-12-17 16:49:15 +0100
committermegabigbug <megabigbug@arrakis.(none)>2009-12-17 16:49:15 +0100
commita0245069cf175d4657913e4cbf2898fe4e31281f (patch)
treebb52cd481d4678764590cf5824913eb7420e93bf /src/mainview.cpp
parentnot sure about this.. (diff)
downloadrekonq-a0245069cf175d4657913e4cbf2898fe4e31281f.tar.xz
fix crashes webtabs
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp4
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();