Disconnect search bar from previous controller when switching tabs. Fixes search bar not remembering its visibility for each tab properly.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=700323
This commit is contained in:
Robert Knight
2007-08-15 07:24:43 +00:00
parent d2daa328de
commit 80a5e77ec5

View File

@@ -120,15 +120,17 @@ void MainWindow::activeViewChanged(SessionController* controller)
connect( bookmarkHandler() , SIGNAL(openUrl(const KUrl&)) , controller ,
SLOT(openUrl(const KUrl&)) );
// listen for title changes from the current session
// disconnect existing controller's UI
if ( _pluggedController )
{
disconnect( _pluggedController , SIGNAL(titleChanged(ViewProperties*))
, this , SLOT(activeViewTitleChanged(ViewProperties*)) );
guiFactory()->removeClient(_pluggedController);
_pluggedController->setSearchBar(0);
}
// listen for title changes from the current session
Q_ASSERT( controller );
connect( controller , SIGNAL(titleChanged(ViewProperties*)) ,