Everything happens in HubFrame.cpp.
The first code;
Code: Select all
if(!ui->getIdentity().isHidden() && u.identity.isHidden() && showUsers) {
ctrlUsers.deleteItem(ui);
}
if(ui->getIdentity().isHidden() && !u.identity.isHidden() && showUsers) {
ctrlUsers.deleteItem(ui);
ctrlUsers.insertItem(ui, getImage(u.identity));
}
The second code;
Code: Select all
if((ui->getIdentity().isHidden()^u.identity.isHidden()) && showUsers) { // XOR-ing... If they are different, proceed
ctrlUsers.deleteItem(ui);
if(ui->getIdentity().isHidden() && !u.identity.isHidden()) { // Has the user been hidden and is not now?
ctrlUsers.insertItem(ui, getImage(u.identity));
}
}
What do you guys think? (I was hoping one of them would make it into DC++, considering the issue with HI1 and HI. Of course, I would make a proper diff and Bugzilla entry.)