diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-20 18:13:19 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-20 18:13:19 +0200 |
commit | ff385888c08e6f7151ed4058694301bf6e1b0cc9 (patch) | |
tree | 64e32438252386a9d200516eb9618e4af5e52b98 | |
parent | cppcheck: reduce variable scope (diff) | |
download | rekonq-ff385888c08e6f7151ed4058694301bf6e1b0cc9.tar.xz |
Add a "show main toolbar" action in the empty tabbar contextual menu
to prevent rekonq being WITHOUT any bar...
-rw-r--r-- | src/tabbar.cpp | 6 |
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); } |