bool EmuFrontObject::operator ==(const EmuFrontObject &sup)
{
- return (id >= 0 && id == sup.id && name == sup.name);
+ return (id >= 0 && id == sup.id);
}
bool EmuFrontObject::operator !=(const EmuFrontObject &sup)
}
bool change = false;
Setup *supTmp = ex->getSetup();
- if (*supTmp != *su) {
+ if (!supTmp || *supTmp != *su) {
delete supTmp;
ex->setSetup(su);
change = true;
int idSup = sup->getId();
int idTmp = tmp->getId();
- if (*sup != *tmp)
+ if (!tmp || *sup != *tmp)
{
delete tmp;
fpo->setSetup(sup);
bool change = false;
Platform *ptmp = sup->getPlatform();
- if (*plf != *ptmp)
+ if (!ptmp || *plf != *ptmp)
{
delete ptmp;
sup->setPlatform(plf);
change = true;
}
MediaType *mtmp = sup->getMediaType();
- if (*mt != *mtmp)
+ if (!mtmp || *mt != *mtmp)
{
delete mtmp;
sup->setMediaType(mt);