-rw-r--r-- | korganizer/koeditordetails.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/korganizer/koeditordetails.cpp b/korganizer/koeditordetails.cpp index 6ecf978..7354940 100644 --- a/korganizer/koeditordetails.cpp +++ b/korganizer/koeditordetails.cpp @@ -64,12 +64,16 @@ void CustomListViewItem<class Attendee *>::updateItem() setText(0,mData->name()); setText(1,mData->email()); setText(2,mData->roleStr()); setText(3,mData->statusStr()); - if (mData->RSVP() && !mData->email().isEmpty()) + if (mData->RSVP() && !mData->email().isEmpty()) { setPixmap(4,SmallIcon("mailappt")); - else + setSortKey(4,"j"); + } + else { setPixmap(4,SmallIcon("nomailappt")); + setSortKey(4,"n"); + } } KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name) @@ -466,9 +470,11 @@ void KOEditorDetails::updateAttendeeItem() a->setName( mNameEdit->text() ); a->setUid( mUidEdit->text() ); a->setEmail( mEmailEdit->text() ); + if ( mEmailEdit->text().isEmpty() ) + mRsvpButton->setChecked( false ); + a->setRSVP( mRsvpButton->isChecked() ); a->setRole( Attendee::Role( mRoleCombo->currentItem() ) ); a->setStatus( Attendee::PartStat( mStatusCombo->currentItem() ) ); - a->setRSVP( mRsvpButton->isChecked() ); aItem->updateItem(); } |