summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-26 21:38:00 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-26 21:38:00 (GMT)
commit5d2ed64c1bdb75f65e517c77e99536038092d9ce (patch)
tree06f7bf877c6fee863a8377a023866e472dec5aff
parent438e0221b271ad86aa13b8599a6b823c43c3a18f (diff)
Adapt to new api
-rw-r--r--src/editor/personaleditor/personaleditorwidget.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/editor/personaleditor/personaleditorwidget.cpp b/src/editor/personaleditor/personaleditorwidget.cpp
index 584038b..4cc44a5 100644
--- a/src/editor/personaleditor/personaleditorwidget.cpp
+++ b/src/editor/personaleditor/personaleditorwidget.cpp
@@ -82,13 +82,7 @@ void PersonalEditorWidget::loadContact(const KContacts::Addressee &contact)
void PersonalEditorWidget::storeContact(KContacts::Addressee &contact)
{
- // dates group
- QDateTime birthday = QDateTime(mBirthdateWidget->date(), QTime(), contact.birthday().timeSpec());
- // This is needed because the constructor above sets the time component
- // of the QDateTime to midnight. We want it to stay invalid.
- birthday.setTime(QTime());
-
- contact.setBirthday(birthday);
+ contact.setBirthday(mBirthdateWidget->date());
Akonadi::Utils::storeCustom(contact, QStringLiteral("X-Anniversary"), mAnniversaryWidget->date().toString(Qt::ISODate));
// family group