Skip to content

Commit

Permalink
Show the movie source as a tooltip.
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information
threeve authored and rentzsch committed Jan 28, 2009
1 parent acf0b5a commit 0ba78fd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Plugin/Plugin.m
Expand Up @@ -67,8 +67,20 @@ - (id) initWithArguments:(NSDictionary *)arguments
[self performSelector:@selector(_convertTypesForContainer) withObject:nil afterDelay:0];
}
}

NSDictionary *attributes = [arguments objectForKey:WebPlugInAttributesKey];
if (arguments) {
NSString *src = [attributes objectForKey:@"src"];
if (src)
[self setToolTip:src];
else {
src = [attributes objectForKey:@"data"];
if (src)
[self setToolTip:src];
}
}
}

return self;
}

Expand Down

2 comments on commit 0ba78fd

@correia
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (arguments)
tests the wrong variable. It should read
if (attributes != nil)

@threeve
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that! Looks like a patch has already been applied.

Please sign in to comment.