mirror of
https://github.com/KDE/konsole.git
synced 2026-05-05 05:07:06 -04:00
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:
@@ -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*)) ,
|
||||
|
||||
Reference in New Issue
Block a user