diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-24 16:21:10 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-24 16:21:10 +0200 |
commit | 6d9f18a4ff82fa620d35f21da32c6a7bea7f0eaf (patch) | |
tree | ccf989ddf8a4894f04eda825fcb5845358be5106 /src/tabbar.cpp | |
parent | Dramatically improved "detach tab" performances.. (diff) | |
download | rekonq-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.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") ); |