Scientists have discovered that repellent odors suppress the perception of pleasant smells. This happens because certain brain structures that respond to attractive odors are inhibited by a repellent one.
— In vinegar flies, anyway. Read more at A repellent odor inhibits the perception of a pleasant odor in vinegar flies at Science Daily.