diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 15ec9b0c..98e70523 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -144,11 +144,11 @@ void MainWindow::activeViewChanged(SessionController* controller) connect( controller , SIGNAL(titleChanged(ViewProperties*)) , this , SLOT(activeViewTitleChanged(ViewProperties*)) ); + controller->setShowMenuAction( _toggleMenuBarAction ); guiFactory()->addClient(controller); // set the current session's search bar controller->setSearchBar( searchBar() ); - controller->setShowMenuAction( _toggleMenuBarAction ); // update session title to match newly activated session activeViewTitleChanged(controller);