Commit 80a5e77e authored by Robert Knight's avatar Robert Knight

Disconnect search bar from previous controller when switching tabs. Fixes...

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
parent d2daa328
......@@ -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*)) ,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment