Correct issue where new tabs start in wrong directories.

Currently, Konsole only updates the tab folder ~2 seconds.  After this
patch, when a new tab is requested the working directory is updated.

Patch by Christoph Feck.

BUG: 227156
FIXED-IN: 4.7
This commit is contained in:
Kurt Hindenburg
2011-03-04 14:34:19 -05:00
parent ae29427a26
commit ad9f8011c3

View File

@@ -346,9 +346,19 @@ void MainWindow::sessionListChanged(const QList<QAction*>& actions)
QString MainWindow::activeSessionDir() const
{
if ( _pluggedController )
{
if ( Session* session = _pluggedController->session() )
{
// For new tabs to get the correct working directory,
// force the updating of the currentWorkingDirectory.
session->getDynamicTitle();
}
return _pluggedController->currentDir();
}
else
{
return QString();
}
}
void MainWindow::openUrls(const QList<KUrl>& urls)