BUG: 152449

This makes sure that if you create a new tab it will always inherit the
current dir, unless the profile you use (either the default using 'new tab'
or using a profile specifically) has a directory set. In which case it will
go to that dir.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=749736
This commit is contained in:
Thomas Zander
2007-12-17 18:48:26 +00:00
parent b54e9ddd40
commit d180bad6f0
3 changed files with 4 additions and 2 deletions

View File

@@ -288,6 +288,8 @@ void Session::run()
QString cwd_save = QDir::currentPath();
if (!_initialWorkingDir.isEmpty())
_shellProcess->setWorkingDirectory(_initialWorkingDir);
else
_shellProcess->setWorkingDirectory(QDir::homePath());
_shellProcess->setXonXoff(_flowControl);
_shellProcess->setErase(_emulation->getErase());