Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
6511de62
Commit
6511de62
authored
Mar 19, 2012
by
Jekyll Wu
Browse files
Prefer using the available convenient method for profile option
parent
d5d7928c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/EditProfileDialog.cpp
View file @
6511de62
...
...
@@ -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
::
E
nvironment
);
QStringList
currentEnvironment
=
profile
->
e
nvironment
(
);
edit
->
setPlainText
(
currentEnvironment
.
join
(
"
\n
"
));
edit
->
setToolTip
(
i18n
(
"One environment variable per line"
));
...
...
src/SessionManager.cpp
View file @
6511de62
...
...
@@ -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
::
E
nvironment
);
QStringList
environment
=
profile
->
e
nvironment
(
);
environment
<<
QString
(
"PROFILEHOME=%1"
).
arg
(
profile
->
defaultWorkingDirectory
());
environment
<<
QString
(
"KONSOLE_PROFILE_NAME=%1"
).
arg
(
profile
->
name
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment