Skip to content

Commit

Permalink
limit menu when using lock perspective
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Apr 1, 2016
1 parent 0820bf7 commit 3c6168e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qt_gui/src/qt_gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,14 +432,14 @@ def sigint_handler(*args):

if main_window is not None:
container_manager = ContainerManager(main_window, plugin_manager)
plugin_manager.set_main_window(main_window, menu_bar, container_manager)
plugin_manager.set_main_window(main_window, menu_bar if not self._options.lock_perspective else None, container_manager)

if not self._options.freeze_layout:
minimized_dock_widgets_toolbar = MinimizedDockWidgetsToolbar(container_manager, main_window)
main_window.addToolBar(Qt.BottomToolBarArea, minimized_dock_widgets_toolbar)
plugin_manager.set_minimized_dock_widgets_toolbar(minimized_dock_widgets_toolbar)

if menu_bar is not None:
if menu_bar is not None and not self._options.lock_perspective:
perspective_menu = menu_bar.addMenu(menu_bar.tr('P&erspectives'))
perspective_manager.set_menu(perspective_menu)

Expand Down

0 comments on commit 3c6168e

Please sign in to comment.