Add more convenient methods for accessing profile option

This commit is contained in:
Jekyll Wu
2012-03-19 18:29:44 +08:00
parent 6511de621b
commit 33678e7ca4
6 changed files with 129 additions and 35 deletions

View File

@@ -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()) );