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

@@ -281,7 +281,7 @@ void Application::createWindow(const QString& key , const QString& directory)
void Application::createSession(const QString& key , const QString& directory , ViewManager* view)
{
Session* session = SessionManager::instance()->createSession(key);
if (!directory.isEmpty())
if (!directory.isEmpty() && session->initialWorkingDirectory().isEmpty())
session->setInitialWorkingDirectory(directory);
// create view before starting the session process so that the session doesn't suffer