mirror of
https://github.com/KDE/konsole.git
synced 2026-06-11 23:45:09 -04:00
Add more convenient methods for accessing profile option
This commit is contained in:
@@ -445,8 +445,7 @@ Session* MainWindow::createSession(Profile::Ptr profile, const QString& director
|
||||
|
||||
Session* session = SessionManager::instance()->createSession(profile);
|
||||
|
||||
if (!directory.isEmpty()
|
||||
&& profile->property<bool>(Profile::StartInCurrentSessionDir))
|
||||
if (!directory.isEmpty() && profile->startInCurrentSessionDir() )
|
||||
session->setInitialWorkingDirectory(directory);
|
||||
|
||||
session->addEnvironmentEntry( QString("KONSOLE_DBUS_WINDOW=/Windows/%1").arg(_viewManager->managerId()) );
|
||||
|
||||
Reference in New Issue
Block a user