summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tabbar.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index ff293d18..1634f284 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -314,16 +314,23 @@ void TabBar::contextMenu(int tab, const QPoint &pos)
menu.addAction(mainWindow->actionByName(QL1S("new_tab")));
menu.addAction(mainWindow->actionByName(QL1S("clone_tab")));
if (count() > 1)
+ {
menu.addAction(mainWindow->actionByName(QL1S("detach_tab")));
+ }
menu.addAction(mainWindow->actionByName(QL1S("open_last_closed_tab")));
menu.addAction(mainWindow->actionByName(QL1S("closed_tab_menu")));
menu.addSeparator();
menu.addAction(mainWindow->actionByName(QL1S("close_tab")));
- menu.addAction(mainWindow->actionByName(QL1S("close_other_tabs")));
+ if (count() > 1)
+ {
+ menu.addAction(mainWindow->actionByName(QL1S("close_other_tabs")));
+ }
menu.addSeparator();
menu.addAction(mainWindow->actionByName(QL1S("reload_tab")));
- menu.addAction(mainWindow->actionByName(QL1S("reload_all_tabs")));
-
+ if (count() > 1)
+ {
+ menu.addAction(mainWindow->actionByName(QL1S("reload_all_tabs")));
+ }
menu.exec(pos);
}