author | zautrix <zautrix> | 2005-06-18 10:40:53 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-18 10:40:53 (UTC) |
commit | 3c6bc55a0c7abf758df57bbb3dc0842bd6b87e6c (patch) (side-by-side diff) | |
tree | bb721da362282858a047659ac1d0c6780a8b15f5 | |
parent | 2cbe93f970eddb6b61d3fc42ccff1a500e806723 (diff) | |
download | kdepimpi-3c6bc55a0c7abf758df57bbb3dc0842bd6b87e6c.zip kdepimpi-3c6bc55a0c7abf758df57bbb3dc0842bd6b87e6c.tar.gz kdepimpi-3c6bc55a0c7abf758df57bbb3dc0842bd6b87e6c.tar.bz2 |
fixx
-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 @@ -56,28 +56,32 @@ template <> CustomListViewItem<class Attendee *>::~CustomListViewItem() { delete mData; } template <> 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) : QWidget( parent, name), mDisableItemUpdate( false ) { QGridLayout *topLayout = new QGridLayout(this); topLayout->setSpacing(spacing); QString organizer = KOPrefs::instance()->email(); mOrganizerLabel = new QLabel(i18n("Organizer: %1").arg(organizer),this); @@ -458,17 +462,19 @@ void KOEditorDetails::updateAttendeeItem() { if (mDisableItemUpdate) return; QListViewItem *item = mListView->selectedItem(); AttendeeListItem *aItem = static_cast<AttendeeListItem *>( item ); if ( !aItem ) return; Attendee *a = aItem->data(); 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(); } |