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