|
@@ -114,8 +114,15 @@
|
|
|
|
|
|
- (IBAction)removeMedia:(id)sender
|
|
- (IBAction)removeMedia:(id)sender
|
|
{
|
|
{
|
|
|
|
+ NSString *title;
|
|
|
|
+ id mediaObject = self.mediaObject;
|
|
|
|
+ if ([mediaObject isKindOfClass:[MLAlbum class]] || [mediaObject isKindOfClass:[MLShowEpisode class]] || [mediaObject isKindOfClass:[MLShow class]])
|
|
|
|
+ title = [mediaObject name];
|
|
|
|
+ else
|
|
|
|
+ title = [mediaObject title];
|
|
|
|
+
|
|
/* ask user if s/he really wants to delete the media file */
|
|
/* ask user if s/he really wants to delete the media file */
|
|
- UIAlertView * alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"DELETE_FILE", @"") message:[NSString stringWithFormat:NSLocalizedString(@"DELETE_FILE_LONG", @""), self.mediaObject.title] delegate:self cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", @"") otherButtonTitles:NSLocalizedString(@"BUTTON_DELETE", @""), nil];
|
|
|
|
|
|
+ UIAlertView * alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"DELETE_FILE", @"") message:[NSString stringWithFormat:NSLocalizedString(@"DELETE_FILE_LONG", @""), title] delegate:self cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", @"") otherButtonTitles:NSLocalizedString(@"BUTTON_DELETE", @""), nil];
|
|
[alert show];
|
|
[alert show];
|
|
}
|
|
}
|
|
|
|
|