Skip to content

Commit

Permalink
Replace use of deprecated function
Browse files Browse the repository at this point in the history
- Silences a warning
  • Loading branch information
samiamwork committed Feb 18, 2013
1 parent 474f47a commit 6f3db42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PlaylistController.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ - (IBAction)addAction:(id)sender
[panel setAllowsMultipleSelection:TRUE];
if (NSOKButton == [panel runModalForTypes:nil]) {
int row = MAX(0, [[_tableView selectedRowIndexes] firstIndex]);
[_playlist insertFiles:[panel filenames] atIndex:row];
[_playlist insertURLs:[panel URLs] atIndex:row];
[self updateUI];

[_tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];
Expand Down

0 comments on commit 6f3db42

Please sign in to comment.