summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-24 16:22:02 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-24 16:22:02 +0200
commitddd86a17a26b88fe39df17459bef587aa22a16d3 (patch)
treef2327733717a5a149f68e17daee540f529f32d64 /src/tabbar.cpp
parentNew dns prefetch webkit property and updated local storage one (diff)
parentDetach tab. last fixes. (diff)
downloadrekonq-ddd86a17a26b88fe39df17459bef587aa22a16d3.tar.xz
Merge branch 'DETACH_TAB'
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index fca3c6b1..a2f269c4 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -273,7 +273,9 @@ void TabBar::contextMenu(int tab, const QPoint &pos)
menu.addAction(mainWindow->actionByName(QLatin1String("new_tab")));
menu.addAction( mainWindow->actionByName("clone_tab") );
- menu.addAction( mainWindow->actionByName("detach_tab") );
+
+ if(count() > 1)
+ menu.addAction( mainWindow->actionByName("detach_tab") );
menu.addSeparator();
menu.addAction( mainWindow->actionByName("close_tab") );
menu.addAction( mainWindow->actionByName("close_other_tabs") );