summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-24 16:21:10 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-24 16:21:10 +0200
commit6d9f18a4ff82fa620d35f21da32c6a7bea7f0eaf (patch)
treeccf989ddf8a4894f04eda825fcb5845358be5106 /src/tabbar.cpp
parentDramatically improved "detach tab" performances.. (diff)
downloadrekonq-6d9f18a4ff82fa620d35f21da32c6a7bea7f0eaf.tar.xz
Detach tab. last fixes.
- Do not detach one tab windows - let detach work with "about" urls
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") );