Commit 6511de62 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Prefer using the available convenient method for profile option

parent d5d7928c
......@@ -301,7 +301,7 @@ void EditProfileDialog::showEnvironmentEditor()
QWeakPointer<KDialog> dialog = new KDialog(this);
KTextEdit* edit = new KTextEdit(dialog.data());
QStringList currentEnvironment = profile->property<QStringList>(Profile::Environment);
QStringList currentEnvironment = profile->environment();
edit->setPlainText(currentEnvironment.join("\n"));
edit->setToolTip(i18n("One environment variable per line"));
......
......@@ -464,7 +464,7 @@ void SessionManager::applyProfile(Session* session, const Profile::Ptr profile ,
if (apply.shouldApply(Profile::Environment)) {
// add environment variable containing home directory of current profile
// (if specified)
QStringList environment = profile->property<QStringList>(Profile::Environment);
QStringList environment = profile->environment();
environment << QString("PROFILEHOME=%1").arg(profile->defaultWorkingDirectory());
environment << QString("KONSOLE_PROFILE_NAME=%1").arg(profile->name());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment