mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-02-14 11:53:26 +01:00
Merge pull request #1361 from ychin/fix-tab-remaining-tracking-tag-crash
Fix remaining tab crash from not clearing tracking tags correctly
This commit is contained in:
@@ -476,9 +476,11 @@
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:cell];
|
||||
if([cell closeButtonTrackingTag] != 0){
|
||||
[self removeTrackingRect:[cell closeButtonTrackingTag]];
|
||||
[cell setCloseButtonTrackingTag:0];
|
||||
}
|
||||
if([cell cellTrackingTag] != 0){
|
||||
[self removeTrackingRect:[cell cellTrackingTag]];
|
||||
[cell setCellTrackingTag:0];
|
||||
}
|
||||
|
||||
// pull from collection
|
||||
@@ -665,9 +667,11 @@
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:cell];
|
||||
if([cell closeButtonTrackingTag] != 0){
|
||||
[self removeTrackingRect:[cell closeButtonTrackingTag]];
|
||||
[cell setCloseButtonTrackingTag:0];
|
||||
}
|
||||
if([cell cellTrackingTag] != 0){
|
||||
[self removeTrackingRect:[cell cellTrackingTag]];
|
||||
[cell setCellTrackingTag:0];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user