diff options
-rw-r--r-- | Source/SPUserManager.m | 2 | ||||
-rw-r--r-- | sequel-pro.xcodeproj/project.pbxproj | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m index dc18659d..37824f47 100644 --- a/Source/SPUserManager.m +++ b/Source/SPUserManager.m @@ -576,6 +576,8 @@ - (void)contextDidSave:(NSNotification *)notification { NSManagedObjectContext *notificationContext = (NSManagedObjectContext *)[notification object]; + // If there are multiple user manager windows open, it's possible to get this + // notification from foreign windows. Ignore those notifications. if (notificationContext != self.managedObjectContext) return; if (!isInitializing) diff --git a/sequel-pro.xcodeproj/project.pbxproj b/sequel-pro.xcodeproj/project.pbxproj index 0be3abd9..1ee42157 100644 --- a/sequel-pro.xcodeproj/project.pbxproj +++ b/sequel-pro.xcodeproj/project.pbxproj @@ -828,6 +828,8 @@ 173E70A1107FF495008733C9 /* Core Data */ = { isa = PBXGroup; children = ( + 4D90B79C101E0CF200D116A1 /* SPUserMO.h */, + 4D90B79D101E0CF200D116A1 /* SPUserMO.m */, 4D90B79B101E0CF200D116A1 /* SPUserManager.xcdatamodel */, ); name = "Core Data"; @@ -1105,8 +1107,6 @@ isa = PBXGroup; children = ( 173E70A1107FF495008733C9 /* Core Data */, - 4D90B79C101E0CF200D116A1 /* SPUserMO.h */, - 4D90B79D101E0CF200D116A1 /* SPUserMO.m */, 172A650F0F7BED7A001E861A /* SPConsoleMessage.h */, 172A65100F7BED7A001E861A /* SPConsoleMessage.m */, 17C058860FC9FC390077E9CF /* SPNarrowDownCompletion.h */, |