~ubuntu-branches/debian/experimental/kopete/experimental

« back to all changes in this revision

Viewing changes to libkopete/kopeteprotocol.cpp

  • Committer: Package Import Robot
  • Author(s): Maximiliano Curia
  • Date: 2015-02-24 11:32:57 UTC
  • mfrom: (1.1.41 vivid)
  • Revision ID: package-import@ubuntu.com-20150224113257-gnupg4v7lzz18ij0
Tags: 4:14.12.2-1
* New upstream release (14.12.2).
* Bump Standards-Version to 3.9.6, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
                QMap<QString, QString> sd;
186
186
                QMap<QString, QString> ad;
187
187
 
188
 
                // Preset the contactId, if the plugin doesn't want to save
 
188
                const QString &nameType = Kopete::Contact::nameTypeToString(c->preferredNameType());
 
189
 
 
190
                // Preset the contactId and preferredNameType, if the plugin doesn't want to save
189
191
                // them, or use its own format, it can call clear() on the provided list
190
192
                sd[ QString::fromLatin1( "contactId" ) ] =   c->contactId();
 
193
                sd[ QString::fromLatin1( "preferredNameType" ) ] = nameType;
191
194
                if(c->account())
192
195
                        sd[ QString::fromLatin1( "accountId" ) ] = c->account()->accountId();
193
196