summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-01-17 19:58:43 +0100
committermegabigbug <megabigbug@arrakis.(none)>2010-01-17 19:58:43 +0100
commitb3e4495ce1355c70f1ab0f5be94b0bca8bba613b (patch)
treefd2f3643f4b35141ec2f57c07d9db7600188c9a8 /src
parentupgrading RULES files and applying loadUrl fix: "double quotes (diff)
downloadrekonq-b3e4495ce1355c70f1ab0f5be94b0bca8bba613b.tar.xz
fix close tab when javascript:self.close()
Diffstat (limited to 'src')
-rw-r--r--src/mainview.cpp2
-rw-r--r--src/mainview.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 7dbe8b23..953f6f38 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -511,7 +511,7 @@ void MainView::closeTab(int index)
removeTab(index);
updateTabBar(); // UI operation: do it ASAP!!
- delete tab; // webView is scheduled for deletion.
+ tab->deleteLater(); // webView is scheduled for deletion.
emit tabsChanged();
diff --git a/src/mainview.h b/src/mainview.h
index f8a8c283..908389b1 100644
--- a/src/mainview.h
+++ b/src/mainview.h
@@ -148,7 +148,7 @@ private slots:
void postLaunch();
-
+
protected:
virtual void resizeEvent(QResizeEvent *event);