| 261 | } |
| 262 | |
| 263 | void ofxTLUIHeader::setShouldDelete(bool del){ |
| 264 | shouldDelete = del; |
| 265 | if(shouldDelete){ |
| 266 | ofRemoveListener(trackHeader->events().viewWasResized, this, &ofxTLUIHeader::viewWasResized); |
| 267 | trackHeader = NULL; //this is needed to circumvent the problem in the destructor |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | bool ofxTLUIHeader::getShouldDelete(){ |
| 272 | return shouldDelete; |