Skip to content
GitLab
Menu
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
5fb01e10
Commit
5fb01e10
authored
Sep 04, 2011
by
Jekyll Wu
Browse files
slight improvement on style and readability.
parent
4b7ce422
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/EditProfileDialog.cpp
View file @
5fb01e10
...
...
@@ -151,13 +151,18 @@ void EditProfileDialog::updateCaption(const Profile::Ptr profile)
{
const
int
MAX_GROUP_CAPTION_LENGTH
=
25
;
ProfileGroup
::
Ptr
group
=
profile
->
asGroup
();
if
(
group
&&
group
->
profiles
().
count
()
>
1
)
if
(
group
&&
group
->
profiles
().
count
()
>
1
)
{
QString
caption
=
groupProfileNames
(
group
,
MAX_GROUP_CAPTION_LENGTH
);
setCaption
(
i18np
(
"Editing profile: %2"
,
"Editing %1 profiles: %2"
,
group
->
profiles
().
count
(),
caption
)
);
setCaption
(
i18np
(
"Editing profile: %2"
,
"Editing %1 profiles: %2"
,
group
->
profiles
().
count
(),
caption
)
);
}
else
{
setCaption
(
i18n
(
"Edit Profile
\"
%1
\"
"
,
profile
->
name
())
);
}
}
void
EditProfileDialog
::
setProfile
(
Profile
::
Ptr
profile
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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