Show
Ignore:
Timestamp:
04/17/08 02:37:40 (8 months ago)
Author:
flynd
Message:

When refreshing contact data also check if birthday icon needs to be changed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/contactlist/contactuserdata.cpp

    r6150 r6155  
    505505  bool hasChanged = updateText(u); 
    506506  gUserManager.DropUser(u); 
     507 
     508  // Check if birthday icon should be updated 
     509  bool birthday = (u->Birthday() == 0); 
     510  if (birthday != myBirthday) 
     511  { 
     512    myBirthday = birthday; 
     513    hasChanged = true; 
     514    if (myBirthday) 
     515      myExtendedStatus |= ContactListModel::BirthdayStatus; 
     516    else 
     517      myExtendedStatus &= ~ContactListModel::BirthdayStatus; 
     518  } 
    507519 
    508520  // To reduce performance impact on refreshs, keep track whether anything changed so we don't force unnecessary updates