summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-14 02:29:46 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-14 02:29:46 +0200
commitd7cecc41f4b5eb650b0d45ecc68362d058a37b40 (patch)
treed1765bb44557035d004cacf5237235dbf19e8d9e /src/mainview.cpp
parentMerge branch 'FixBlocks' (diff)
downloadrekonq-d7cecc41f4b5eb650b0d45ecc68362d058a37b40.tar.xz
Implement TZander suggestions on closing the last tab
BUG: 230576
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 84b87956..dcdaa626 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -469,6 +469,10 @@ void MainView::closeTab(int index, bool del)
if (count() == 1)
{
WebView *w = currentWebTab()->view();
+
+ if( currentWebTab()->url().protocol() == QL1S("about") )
+ return;
+
switch (ReKonfig::newTabsBehaviour())
{
case 0: // new tab page