Commit 5fb01e10 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

slight improvement on style and readability.

parent 4b7ce422
......@@ -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)
{
......
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