diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-24 16:22:02 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-24 16:22:02 +0200 |
commit | ddd86a17a26b88fe39df17459bef587aa22a16d3 (patch) | |
tree | f2327733717a5a149f68e17daee540f529f32d64 /src/tabbar.cpp | |
parent | New dns prefetch webkit property and updated local storage one (diff) | |
parent | Detach tab. last fixes. (diff) | |
download | rekonq-ddd86a17a26b88fe39df17459bef587aa22a16d3.tar.xz |
Merge branch 'DETACH_TAB'
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r-- | src/tabbar.cpp | 4 |
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") ); |