~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to importwizard/pmail/pmailsettings.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2013-03-05 15:41:08 UTC
  • mfrom: (0.2.39)
  • Revision ID: package-import@ubuntu.com-20130305154108-b0p6t57iqnf4d8p6
Tags: 4:4.10.1-0ubuntu1
New upstream bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
void PMailSettings::readIdentity( const KConfigGroup& group )
54
54
{
55
 
    KPIMIdentities::Identity* newIdentity = createIdentity();
56
 
    const QString personalNameStr = QLatin1String("Personal name                             ");
 
55
 
 
56
    QString personalNameStr = QLatin1String("Personal name                             ");
 
57
    QString personalName;
57
58
    if(group.hasKey(personalNameStr)) {
58
 
        QString personalName = group.readEntry(personalNameStr);
 
59
        personalName = group.readEntry(personalNameStr);
59
60
        personalName.remove(0,1); //Remove first space
60
 
        newIdentity->setFullName( personalName );
61
 
        newIdentity->setIdentityName( personalName );
62
61
    }
 
62
    KPIMIdentities::Identity* newIdentity = createIdentity(personalName);
 
63
    newIdentity->setFullName( personalName );
 
64
    newIdentity->setIdentityName( personalName );
 
65
 
63
66
    const QString emailStr = QLatin1String("Internet E-mail Address                   ");
64
67
    if(group.hasKey(emailStr)) {
65
68
        QString email = group.readEntry(emailStr);