mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kdepasswd: set the accountservice email
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
4d67caea11
commit
ef45c755f6
1 changed files with 12 additions and 0 deletions
|
@ -220,6 +220,18 @@ void KCMUserAccount::save()
|
|||
KMessageBox::error(this, i18n("There was an error setting the name: %1", name));
|
||||
}
|
||||
}
|
||||
|
||||
if ( _mw->leEmail->isModified() ) {
|
||||
// save e-mail with accountsservice
|
||||
const QString email = _mw->leEmail->text();
|
||||
const bool result = setASProp(
|
||||
this, qlonglong(_ku->uid()),
|
||||
QString::fromLatin1("SetEmail"), email
|
||||
);
|
||||
if (!result) {
|
||||
KMessageBox::error(this, i18n("There was an error setting the Email: %1", email));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Save the image */
|
||||
|
|
Loading…
Add table
Reference in a new issue