[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kaddressbook
From: Martin Koller <m.koller () surfeu ! at>
Date: 2009-07-30 12:44:42
Message-ID: 1248957882.276510.31794.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1004532 by mkoller:
BUG: 118289
make sure the unset time stays invalid
M +8 -2 addresseeeditorwidget.cpp
--- trunk/KDE/kdepim/kaddressbook/addresseeeditorwidget.cpp #1004531:1004532
@@ -436,8 +436,14 @@
mAddressee.removeCustom( "KADDRESSBOOK", "BlogFeed" );
mAddressee.setNote( tab2.mNoteEdit->toPlainText() );
- if ( tab2.mBirthdayPicker->date().isValid() )
- mAddressee.setBirthday( QDateTime( tab2.mBirthdayPicker->date() ) );
+ if ( tab2.mBirthdayPicker->date().isValid() ) {
+ QDateTime date( tab2.mBirthdayPicker->date() );
+ // Only the date is taken, therefore
+ // explicitely invalidate the time as the above ctor sets the time to 00:00
+ // instead of keeping it invalid.
+ date.setTime( QTime() );
+ mAddressee.setBirthday( date );
+ }
else
mAddressee.setBirthday( QDateTime() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic