Skip to content

Commit

Permalink
when about to show the user what will be anonymously sent, make sure …
Browse files Browse the repository at this point in the history
…the delegate is told that systemprofile info will be sent so it knows to put its custom additions in there.
  • Loading branch information
Brian Cooke committed Aug 20, 2009
1 parent 59d9ece commit 827c6ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions SUUpdater.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ - (void)startUpdateCycle
if (shouldPrompt)
{
NSArray *profileInfo = [host systemProfile];
if ([delegate respondsToSelector:@selector(feedParametersForUpdater:sendingSystemProfile:)])
profileInfo = [profileInfo arrayByAddingObjectsFromArray:[delegate feedParametersForUpdater:self sendingSystemProfile:[self sendsSystemProfile]]];
if ([delegate respondsToSelector:@selector(feedParametersForUpdater:sendingSystemProfile:)])
{
// always say we're sending the system profile here so that the delegate puts in their parameters for display
profileInfo = [profileInfo arrayByAddingObjectsFromArray:[delegate feedParametersForUpdater:self sendingSystemProfile:YES]];
}
[SUUpdatePermissionPrompt promptWithHost:host systemProfile:profileInfo delegate:self];
// We start the update checks and register as observer for changes after the prompt finishes
}
Expand Down

0 comments on commit 827c6ad

Please sign in to comment.