Changeset 6944 for code/branches/presentation3/src/modules/questsystem/notifications/NotificationQueue.cc
- Timestamp:
- May 20, 2010, 9:43:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/questsystem/notifications/NotificationQueue.cc
r6502 r6944 56 56 NotificationQueue::NotificationQueue(BaseObject* creator) : OverlayGroup(creator) 57 57 { 58 this->registered_ = false; 59 58 60 RegisterObject(NotificationQueue); 59 61 this->initialize(); … … 68 70 this->targets_.clear(); 69 71 this->clear(); 72 73 if(this->registered_) 74 NotificationManager::getInstance().unregisterListener(this); 70 75 } 71 76 … … 81 86 82 87 NotificationManager::getInstance().registerListener(this); 88 this->registered_ = true; 83 89 } 84 90 … … 423 429 return false; 424 430 431 NotificationManager::getInstance().unregisterNotification(container->notification, this); 432 425 433 this->removeElement(container->overlay); 426 434 this->containers_.erase(container); … … 443 451 { 444 452 this->removeContainer(*it); 445 it = this->containers_.begin(); //TODO: Needed?453 it = this->containers_.begin(); 446 454 } 447 455 }
Note: See TracChangeset
for help on using the changeset viewer.