All pastes #91261 Raw Edit

Anonymous

public text v1 · immutable
#91261 ·published 2006-07-18 12:19 UTC
rendered paste body
void IgnoreList::deleteItem(QListViewItem *item)
{
    Contact *contact = getContacts()->contact(item->text(3).toUInt());
    if (contact) {
        contact->setIgnore(false);
        Event e1(EventContactChanged, contact);
        e1.process();
        /*      Don't delete user - move them to NotInList
                Maybe add a second menuitem  - one with delete, one with remove
                delete - real delete
                remove - move to NotInList
                But I don't know how to create a second item
                Christian
                
                Event e2(EventContactDeleted, contact);
                e2.process();
                delete contact; */
    }
}