mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Camino only - Bug 359907: Bookmarks aren't deleted from bookmarks menu after deletion from bookmark manager. r=hwaara sr=pink
This commit is contained in:
parent
b03feb9fe0
commit
8a87ab9636
@ -301,6 +301,19 @@ const long kOpenInTabsTag = 0xBEEF;
|
||||
- (void)bookmarkChanged:(NSNotification *)inNotification
|
||||
{
|
||||
BookmarkItem* changedItem = [inNotification object];
|
||||
|
||||
NSNumber* noteChangeFlags = [[inNotification userInfo] objectForKey:BookmarkItemChangedFlagsKey];
|
||||
unsigned int changeFlags = kBookmarkItemEverythingChangedMask;
|
||||
if (noteChangeFlags)
|
||||
changeFlags = [noteChangeFlags unsignedIntValue];
|
||||
|
||||
// first, see if it's a notification that this folder's children have changed
|
||||
if ((changedItem == mFolder) && (changeFlags & kBookmarkItemChildrenChangedMask)) {
|
||||
mDirty = YES;
|
||||
return;
|
||||
}
|
||||
|
||||
// any other change is only interesting if it's to one of this folder's children
|
||||
if ([changedItem parent] != mFolder)
|
||||
return;
|
||||
|
||||
@ -309,12 +322,6 @@ const long kOpenInTabsTag = 0xBEEF;
|
||||
if (itemIndex == -1)
|
||||
return;
|
||||
|
||||
unsigned int changeFlags = kBookmarkItemEverythingChangedMask;
|
||||
NSNumber* noteChangeFlags = [[inNotification userInfo] objectForKey:BookmarkItemChangedFlagsKey];
|
||||
|
||||
if (noteChangeFlags)
|
||||
changeFlags = [noteChangeFlags unsignedIntValue];
|
||||
|
||||
// if it changed to or from a separator (or everything changed), just do a rebuild later
|
||||
if (changeFlags & kBookmarkItemStatusChangedMask) {
|
||||
mDirty = YES;
|
||||
|
Loading…
Reference in New Issue
Block a user