Add the hide action before we set the xmlguiclient so the action is found when

making the menu.
BUG: 151421

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=738433
This commit is contained in:
Thomas Zander
2007-11-18 22:05:12 +00:00
parent c6dbccc7cb
commit 9e87abdf01

View File

@@ -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);