diff --git a/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift b/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift index 4fc0c242..6a31c54c 100644 --- a/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift +++ b/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift @@ -296,7 +296,7 @@ extension ProfileManager { } // IMPORTANT: invalidate current profile if deleted - if !currentProfile.value.isPlaceholder && newHeaders.keys.contains(currentProfile.value.id) { + if !currentProfile.value.isPlaceholder && !newHeaders.keys.contains(currentProfile.value.id) { pp_log.info("\tCurrent profile deleted, invalidating...") if isCurrentProfileActive() { pp_log.info("\tCurrent profile was also active, deactivating...")