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