summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-20 18:13:19 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-20 18:13:19 +0200
commitff385888c08e6f7151ed4058694301bf6e1b0cc9 (patch)
tree64e32438252386a9d200516eb9618e4af5e52b98 /src
parentcppcheck: reduce variable scope (diff)
downloadrekonq-ff385888c08e6f7151ed4058694301bf6e1b0cc9.tar.xz
Add a "show main toolbar" action in the empty tabbar contextual menu
to prevent rekonq being WITHOUT any bar...
Diffstat (limited to 'src')
-rw-r--r--src/tabbar.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index 2d29032f..98243e71 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -322,6 +322,12 @@ void TabBar::emptyAreaContextMenu(const QPoint &pos)
menu.addSeparator();
menu.addAction(mainWindow->actionByName( QL1S("reload_all_tabs") ));
+ KToolBar *mainBar = mainWindow->toolBar("mainToolBar");
+ if(!mainBar->isVisible())
+ {
+ menu.addAction( mainBar->toggleViewAction() );
+ }
+
menu.exec(pos);
}